Click here to Skip to main content
15,894,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 17:09
protectorHeath Stewart9-Jan-04 17:09 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 17:30
Judy1011019-Jan-04 17:30 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 18:11
protectorHeath Stewart9-Jan-04 18:11 
GeneralChanging DataGrid column value Pin
RadioButton9-Jan-04 11:59
RadioButton9-Jan-04 11:59 
GeneralRe: Changing DataGrid column value Pin
Heath Stewart9-Jan-04 12:17
protectorHeath Stewart9-Jan-04 12:17 
GeneralGraphic Event Pin
hxxbin9-Jan-04 11:40
hxxbin9-Jan-04 11:40 
GeneralRe: Graphic Event Pin
Charlie Williams9-Jan-04 12:11
Charlie Williams9-Jan-04 12:11 
GeneralRe: Graphic Event Pin
Heath Stewart9-Jan-04 12:11
protectorHeath Stewart9-Jan-04 12:11 
The best way to force a repaint when you resize a Control or Form (which derives form Control) is to override the Control and in the constructor (or some method that's called in the constructor) call SetStyle(ControlStyles.ResizeRedraw, true).

At any time, though, you can call Control.Refresh to invalidate the entire control and force a repaint. If you only want to invalidate a certain section, first call Control.Invalidate and optionally pass the region you want to invalidate, then call Control.Update to repaint the invalidated regions. You can always just call Control.Update to repaint any regions that were invalidated by something else (like a form passing over it, in which case a WM_PAINT method is sent by Windows anyway).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Graphic Event Pin
Meysam Mahfouzi9-Jan-04 18:23
Meysam Mahfouzi9-Jan-04 18:23 
GeneralRe: Graphic Event Pin
Heath Stewart9-Jan-04 19:36
protectorHeath Stewart9-Jan-04 19:36 
GeneralRe: Graphic Event Pin
hxxbin10-Jan-04 13:34
hxxbin10-Jan-04 13:34 
GeneralRe: Graphic Event Pin
leppie9-Jan-04 12:42
leppie9-Jan-04 12:42 
Generalwinform start location Pin
Peter Reiter9-Jan-04 11:20
Peter Reiter9-Jan-04 11:20 
GeneralRe: winform start location Pin
hxxbin9-Jan-04 11:38
hxxbin9-Jan-04 11:38 
GeneralRe: winform start location Pin
Peter Reiter9-Jan-04 11:52
Peter Reiter9-Jan-04 11:52 
GeneralRe: winform start location Pin
leppie9-Jan-04 11:56
leppie9-Jan-04 11:56 
GeneralRe: winform start location Pin
Heath Stewart9-Jan-04 12:06
protectorHeath Stewart9-Jan-04 12:06 
GeneralRe: winform start location Pin
hxxbin10-Jan-04 14:40
hxxbin10-Jan-04 14:40 
GeneralEmail setting rendez-vous in outlook. Pin
Demo3609-Jan-04 10:41
Demo3609-Jan-04 10:41 
GeneralRe: Email setting rendez-vous in outlook. Pin
Heath Stewart9-Jan-04 12:04
protectorHeath Stewart9-Jan-04 12:04 
QuestionGetting the selected tree node's text? Pin
Manster9-Jan-04 9:37
Manster9-Jan-04 9:37 
AnswerRe: Getting the selected tree node's text? Pin
Mazdak9-Jan-04 9:45
Mazdak9-Jan-04 9:45 
GeneralRe: Getting the selected tree node's text? Pin
Manster9-Jan-04 10:00
Manster9-Jan-04 10:00 
GeneralRe: Getting the selected tree node's text? Pin
Mazdak9-Jan-04 10:17
Mazdak9-Jan-04 10:17 
GeneralDataGrid Insert Row Pin
dubor9-Jan-04 9:31
dubor9-Jan-04 9:31 

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.