Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralGetting the active control type Pin
lsantos20002-Jun-03 3:19
lsantos20002-Jun-03 3:19 
GeneralRe: Getting the active control type Pin
Nathan Blomquist2-Jun-03 4:16
Nathan Blomquist2-Jun-03 4:16 
GeneralRe: Getting the active control type Pin
leppie2-Jun-03 7:57
leppie2-Jun-03 7:57 
GeneralGetDlgCtrlID() API function doesn't work in .NET Pin
Roman Muntyanu2-Jun-03 3:14
Roman Muntyanu2-Jun-03 3:14 
GeneralGDI+, removinf flicker. Pin
Nigma2-Jun-03 2:17
Nigma2-Jun-03 2:17 
GeneralRe: GDI+, removinf flicker. Pin
Philip Fitzsimons2-Jun-03 2:59
Philip Fitzsimons2-Jun-03 2:59 
GeneralRe: GDI+, removinf flicker. Pin
J. Dunlap2-Jun-03 8:12
J. Dunlap2-Jun-03 8:12 
GeneralRe: GDI+, removinf flicker. Pin
James T. Johnson2-Jun-03 10:52
James T. Johnson2-Jun-03 10:52 
You should also specify AllPaintingInWmPaint and UserPaint.

The first makes it so that the PaintBackground event is called from within the Paint event instead of the windows WM_ERASEBKGND message. If you don't specify this then the PaintBackground event is fired outside of the double buffer which can have some side effects (like flicker).

The second tells the framework to use your OnPaint/Paint handler instead of letting windows do the painting.

this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint,<br />
  true);


James

"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him

GeneralC# and Managed DirectX Invalid Rectangle Pin
EvilDingo2-Jun-03 2:10
EvilDingo2-Jun-03 2:10 
GeneralRe: C# and Managed DirectX Invalid Rectangle Pin
James T. Johnson2-Jun-03 10:59
James T. Johnson2-Jun-03 10:59 
GeneralRe: C# and Managed DirectX Invalid Rectangle Pin
EvilDingo3-Jun-03 1:36
EvilDingo3-Jun-03 1:36 
GeneralRe: C# and Managed DirectX Invalid Rectangle Pin
Anonymous3-Jun-03 1:58
Anonymous3-Jun-03 1:58 
GeneralRe: C# and Managed DirectX Invalid Rectangle Pin
James T. Johnson3-Jun-03 2:00
James T. Johnson3-Jun-03 2:00 
GeneralRe: C# and Managed DirectX Invalid Rectangle Pin
EvilDingo3-Jun-03 4:27
EvilDingo3-Jun-03 4:27 
GeneralSelected row from a ListView Pin
quicksilver02022-Jun-03 1:03
quicksilver02022-Jun-03 1:03 
Generalexisting code from c++ Pin
stonee741-Jun-03 22:26
stonee741-Jun-03 22:26 
GeneralGif compression using Save method on bitmap class Pin
christiantoivola1-Jun-03 22:08
christiantoivola1-Jun-03 22:08 
GeneralRe: Gif compression using Save method on bitmap class Pin
Richard Deeming1-Jun-03 23:33
mveRichard Deeming1-Jun-03 23:33 
Generalshow tooltip Pin
grv5751-Jun-03 20:16
grv5751-Jun-03 20:16 
GeneralRe: show tooltip Pin
Singh, Manish2-Jun-03 20:44
Singh, Manish2-Jun-03 20:44 
GeneralSystem.NullReferenceException in RichTextBox while dynamically adding text Pin
CNU1-Jun-03 19:58
CNU1-Jun-03 19:58 
GeneralCreate a remort object in C# Pin
Gaurika Wijeratne1-Jun-03 17:54
Gaurika Wijeratne1-Jun-03 17:54 
GeneralRe: Create a remort object in C# Pin
Kannan Kalyanaraman1-Jun-03 22:17
Kannan Kalyanaraman1-Jun-03 22:17 
GeneralRe: Create a remort object in C# Pin
Gaurika Wijeratne1-Jun-03 22:39
Gaurika Wijeratne1-Jun-03 22:39 
Generalurgent help needed, event handler Pin
mtrx1-Jun-03 17:35
mtrx1-Jun-03 17: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.