Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: A good way to store this information? Pin
stephen.darling20-Oct-10 7:40
stephen.darling20-Oct-10 7:40 
QuestionDynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith15-Oct-10 15:59
DaveGriffith15-Oct-10 15:59 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn15-Oct-10 17:27
sitebuilderLuc Pattyn15-Oct-10 17:27 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith17-Oct-10 10:33
DaveGriffith17-Oct-10 10:33 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn17-Oct-10 10:41
sitebuilderLuc Pattyn17-Oct-10 10:41 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
forkus200024-Oct-10 19:15
forkus200024-Oct-10 19:15 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn25-Oct-10 2:09
sitebuilderLuc Pattyn25-Oct-10 2:09 
QuestionEllipse Pin
WebMaster15-Oct-10 15:17
WebMaster15-Oct-10 15:17 
I have a short program to draw a line and rectangle with the mouse. I am new to C# and am having trouble continuing this code to draw an ellipse(perhaps bounded by rectangle).
public void OnMouseMove_Handler(Object sender, MousEventArgs e)
{ if (e.Button == MouseButtons.Left)
{ Form CurrentForm = (Form)sender;
if (SelectedShape == "Line")
ControlPaint.DrawReversibleLine (CurrentForm.PointToScreen(StartPoint),
CurrentForm.PointToScreen(EndPoint), Color.Black);
EndPoint = new Point(e.X, e.Y);
ControlPaint.DrawReversibleLine(CurrentForm.PointToScreen(EndPoint), Color.Black);
}
Then I use an "else if" to do the same for the rectangle. I just cannot seem to get this to work for an ellipse. I know that I must construct rectangle and pass to Draw Ellipse method. Just cannot get it to work.
AnswerRe: Ellipse Pin
Richard Andrew x6415-Oct-10 16:16
professionalRichard Andrew x6415-Oct-10 16:16 
GeneralMessage Removed Pin
15-Oct-10 16:30
WebMaster15-Oct-10 16:30 
GeneralRe: Ellipse Pin
Richard Andrew x6415-Oct-10 16:33
professionalRichard Andrew x6415-Oct-10 16:33 
GeneralRe: Ellipse Pin
WebMaster15-Oct-10 16:47
WebMaster15-Oct-10 16:47 
GeneralRe: Ellipse Pin
Richard Andrew x6415-Oct-10 16:53
professionalRichard Andrew x6415-Oct-10 16:53 
GeneralRe: Ellipse Pin
WebMaster15-Oct-10 17:01
WebMaster15-Oct-10 17:01 
GeneralRe: Ellipse Pin
Richard Andrew x6415-Oct-10 17:03
professionalRichard Andrew x6415-Oct-10 17:03 
GeneralRe: Ellipse Pin
Richard Andrew x6415-Oct-10 17:36
professionalRichard Andrew x6415-Oct-10 17:36 
GeneralRe: Ellipse Pin
WebMaster16-Oct-10 8:24
WebMaster16-Oct-10 8:24 
AnswerRe: Ellipse Pin
Not Active16-Oct-10 8:47
mentorNot Active16-Oct-10 8:47 
GeneralRe: Ellipse Pin
WebMaster16-Oct-10 9:02
WebMaster16-Oct-10 9:02 
GeneralRe: Ellipse Pin
Lamrin17-Oct-10 0:09
Lamrin17-Oct-10 0:09 
GeneralRe: Ellipse Pin
WebMaster17-Oct-10 7:57
WebMaster17-Oct-10 7:57 
GeneralRe: Ellipse Pin
WebMaster17-Oct-10 8:05
WebMaster17-Oct-10 8:05 
GeneralRe: Ellipse Pin
Lamrin17-Oct-10 15:46
Lamrin17-Oct-10 15:46 
GeneralRe: Ellipse Pin
WebMaster18-Oct-10 5:16
WebMaster18-Oct-10 5:16 
GeneralRe: Ellipse Pin
WebMaster20-Oct-10 8:21
WebMaster20-Oct-10 8:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.