3
Answers

close application

mohan

mohan

15y
3.7k
1
hi everyone, how to close an application when the user fails to enter thro login after his 3rd attempt......

i.e my application should allow any user to login for maximum of 3 times if he is unable to enter the correct userid & pwd,then my application should close ......
Answers (3)
0
Ankit Sharma

Ankit Sharma

NA 8.8k 141k 7y
Hi Mayur,
 
These links might be of some help
 
https://www.codeproject.com/Articles/1181872/WPF-Arc 
 
https://stackoverflow.com/questions/21957779/arc-segment-between-two-points-and-a-radius 
 
https://stackoverflow.com/questions/16667072/how-to-draw-arc-with-radius-and-start-and-stop-angle 
Accepted
1
Mohamed Abedallah

Mohamed Abedallah

NA 574 67 7y
In addition to the links that Ankit mentioned, you can try doing this using the Annotations feature from LEADTOOLS, which provides the ability to draw Curve annotation object using the AnnCurveObject class.
You can find more details about this object here:
https://www.leadtools.com/help/leadtools/v19m/dh/ac/anncurveobject.html

Note that you can customize object’s bending between control points using the Tension property. More details can be found here:
https://www.leadtools.com/help/leadtools/v19m/dh/ac/anncurveobject-tension.html
0
Mayur Ghatkar

Mayur Ghatkar

NA 49 1.8k 7y
Hello Guys,
 
Thanks for your valuable suggestion. But Ankit, actually I refer all this links but I coudn't get any clear idea regarding my perspective of Arc. I have to give radius to Arc.
 

public Point StartPointOfArc
{
get { return new Point(StartPointCanvasLeftPosition , StartPointCanvasTopPosition ); }
set
{
_StartPointOfArc = value;
}
}
public Point EndPointOfArc
{
get { return new Point(EndPointCanvasLeftPosition, EndPointCanvasTopPosition); }
set
{
_EndPointOfArc = value;
}
}
public Point PivotPointOfArc
{
get { return new Point(PivotPointCanvasLeftPosition, PivotPointCanvasTopPosition); }
set
{
_PivotPointOfArc = value;
}
}
 
These are my three points. And I have to use ArcSegment to draw arc between StartPointOf Arc and EndPointOfArc considering PivotPointOfArc as center.