Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling a windows form Pin
Shoaib Hussain2-Jun-07 1:45
Shoaib Hussain2-Jun-07 1:45 
GeneralRe: Calling a windows form Pin
hosam Taji2-Jun-07 1:46
hosam Taji2-Jun-07 1:46 
AnswerRe: Calling a windows form Pin
Shoaib Hussain2-Jun-07 1:31
Shoaib Hussain2-Jun-07 1:31 
AnswerRe: Calling a windows form Pin
Christian Graus2-Jun-07 1:35
protectorChristian Graus2-Jun-07 1:35 
GeneralRe: Calling a windows form Pin
hosam Taji2-Jun-07 1:49
hosam Taji2-Jun-07 1:49 
GeneralRe: Calling a windows form Pin
Christian Graus2-Jun-07 1:52
protectorChristian Graus2-Jun-07 1:52 
AnswerRe: Calling a windows form Pin
Ravi Bhavnani2-Jun-07 3:13
professionalRavi Bhavnani2-Jun-07 3:13 
QuestionDrawing a line in control - vanishes? Pin
BlueChippy2-Jun-07 0:25
BlueChippy2-Jun-07 0:25 
I'm guessing I've done something stupid but...

I'm new to Drawing2D, but I want a simple user control that is basically blank but will display (draw) a line when I click a button on a form.

I have a method DrawLine() in the control to draw the line using this.CreateGrapics() etc.
I have a button, on the form that implements the control, which calls control1.DrawLine().

The line DOES draw...briefly...but then vanishes?
I've tried stepping through, and the control draws the line as expected but then seems to lose it immediately.

I've overridden OnPaint, but not sure what to put in it other than base.OnPaint(e).

Any help very gratefully received.
AnswerRe: Drawing a line in control - vanishes? Pin
Christian Graus2-Jun-07 0:55
protectorChristian Graus2-Jun-07 0:55 
AnswerRe: Drawing a line in control - vanishes? Pin
Guffa2-Jun-07 0:57
Guffa2-Jun-07 0:57 
GeneralRe: Drawing a line in control - vanishes? Pin
BlueChippy2-Jun-07 1:34
BlueChippy2-Jun-07 1:34 
GeneralRe: Drawing a line in control - vanishes? Pin
Christian Graus2-Jun-07 1:37
protectorChristian Graus2-Jun-07 1:37 
Questionusing list object as a public property in custom control Pin
Shoaib Hussain2-Jun-07 0:06
Shoaib Hussain2-Jun-07 0:06 
AnswerRe: using list object as a public property in custom control Pin
mikker_1232-Jun-07 16:46
mikker_1232-Jun-07 16:46 
QuestionSerialization inside Singleton Pin
LudoStroetenga1-Jun-07 23:05
LudoStroetenga1-Jun-07 23:05 
QuestionRichTextBox blinking Pin
the_yeast1-Jun-07 22:40
the_yeast1-Jun-07 22:40 
AnswerRe: RichTextBox blinking Pin
mav.northwind2-Jun-07 20:33
mav.northwind2-Jun-07 20:33 
QuestionSendKey help Pin
Vivek Vijayan1-Jun-07 22:02
Vivek Vijayan1-Jun-07 22:02 
AnswerRe: SendKey help Pin
mav.northwind2-Jun-07 20:35
mav.northwind2-Jun-07 20:35 
GeneralRe: SendKey help Pin
Vivek Vijayan6-Jun-07 10:15
Vivek Vijayan6-Jun-07 10:15 
QuestionSynchronizing the system clock Pin
M. J. Jaya Chitra1-Jun-07 20:42
M. J. Jaya Chitra1-Jun-07 20:42 
AnswerRe: Synchronizing the system clock Pin
Christian Graus1-Jun-07 20:52
protectorChristian Graus1-Jun-07 20:52 
QuestionRe: Synchronizing the system clock Pin
M. J. Jaya Chitra1-Jun-07 21:29
M. J. Jaya Chitra1-Jun-07 21:29 
AnswerRe: Synchronizing the system clock Pin
Christian Graus1-Jun-07 21:50
protectorChristian Graus1-Jun-07 21:50 
GeneralRe: Synchronizing the system clock Pin
M. J. Jaya Chitra1-Jun-07 22:35
M. J. Jaya Chitra1-Jun-07 22:35 

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.