Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help regarding Listview & Progressbar Pin
Heath Stewart9-Jan-04 19:41
protectorHeath Stewart9-Jan-04 19:41 
QuestionSecure remoting channel? Pin
Alex Korchemniy9-Jan-04 14:18
Alex Korchemniy9-Jan-04 14:18 
AnswerRe: Secure remoting channel? Pin
Guillermo Rivero10-Jan-04 7:46
Guillermo Rivero10-Jan-04 7:46 
GeneralRe: Secure remoting channel? Pin
Alex Korchemniy10-Jan-04 9:45
Alex Korchemniy10-Jan-04 9:45 
GeneralProblem adding a reference Pin
Judy1011019-Jan-04 12:11
Judy1011019-Jan-04 12:11 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 12:20
protectorHeath Stewart9-Jan-04 12:20 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 15:56
Judy1011019-Jan-04 15:56 
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 

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.