Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Supressing a MessageBox Pin
eggie526-Mar-06 15:28
eggie526-Mar-06 15:28 
GeneralRe: Supressing a MessageBox Pin
Luis Alonso Ramos26-Mar-06 15:34
Luis Alonso Ramos26-Mar-06 15:34 
GeneralRe: Supressing a MessageBox Pin
eggie526-Mar-06 15:41
eggie526-Mar-06 15:41 
GeneralRe: Supressing a MessageBox Pin
Luis Alonso Ramos26-Mar-06 15:47
Luis Alonso Ramos26-Mar-06 15:47 
GeneralRe: Supressing a MessageBox Pin
eggie526-Mar-06 6:42
eggie526-Mar-06 6:42 
GeneralRe: Supressing a MessageBox Pin
cnich2327-Mar-06 4:19
cnich2327-Mar-06 4:19 
QuestionErasing lines Pin
CoolASL25-Mar-06 6:31
CoolASL25-Mar-06 6:31 
AnswerRe: Erasing lines Pin
Robert Rohde25-Mar-06 7:31
Robert Rohde25-Mar-06 7:31 
Repainting is generally a good idea. Just implement your OnPaint method the way that a flag indicates whether the lines should be drawn or not. Everytime you switch between on and off just switch the flag and call Invalidate on your control. This will lead to a repaint (and also avoid too many repaints).
If your are switching frequently you should enable double buffering to avoid flickering:
(in constructor)
base.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
GeneralRe: Erasing lines Pin
CoolASL26-Mar-06 23:04
CoolASL26-Mar-06 23:04 
QuestionHow can i bind two controls together in witch that when one control scrolls the other scrolls too? Pin
Bobby88725-Mar-06 6:06
Bobby88725-Mar-06 6:06 
AnswerRe: How can i bind two controls together in witch that when one control scrolls the other scrolls too? Pin
Ravi Bhavnani25-Mar-06 8:09
professionalRavi Bhavnani25-Mar-06 8:09 
QuestionWindows Service Pin
hung_ngole25-Mar-06 6:04
hung_ngole25-Mar-06 6:04 
QuestionDrawing a line in ASP.NET Pin
naglbitur25-Mar-06 5:00
naglbitur25-Mar-06 5:00 
AnswerRe: Drawing a line in ASP.NET Pin
leppie25-Mar-06 6:51
leppie25-Mar-06 6:51 
AnswerRe: Drawing a line in ASP.NET Pin
Guffa25-Mar-06 7:18
Guffa25-Mar-06 7:18 
QuestionCorrection: How to define an array in a class Pin
IceWater4225-Mar-06 4:54
IceWater4225-Mar-06 4:54 
AnswerRe: Correction: How to define an array in a class Pin
Nicholas Butler25-Mar-06 5:26
sitebuilderNicholas Butler25-Mar-06 5:26 
GeneralRe: Correction: How to define an array in a class Pin
IceWater4225-Mar-06 6:49
IceWater4225-Mar-06 6:49 
GeneralRe: Correction: How to define an array in a class Pin
Guffa25-Mar-06 7:21
Guffa25-Mar-06 7:21 
QuestionMicrosoft Office Spreadsheet 10.0 Pin
i_martin_r25-Mar-06 4:45
i_martin_r25-Mar-06 4:45 
AnswerRe: Microsoft Office Spreadsheet 10.0 Pin
mcljava25-Mar-06 12:36
mcljava25-Mar-06 12:36 
QuestionDrag and drop Pin
valiovalio25-Mar-06 4:32
valiovalio25-Mar-06 4:32 
AnswerRe: Drag and drop Pin
Robert Rohde25-Mar-06 7:40
Robert Rohde25-Mar-06 7:40 
GeneralRe: Drag and drop Pin
valiovalio25-Mar-06 9:36
valiovalio25-Mar-06 9:36 
QuestionShortcut Pin
nogola25-Mar-06 4:07
nogola25-Mar-06 4:07 

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.