Click here to Skip to main content
15,904,500 members
Home / Discussions / C#
   

C#

 
Generalforms maximize and minimum Pin
webhay28-Oct-04 16:05
webhay28-Oct-04 16:05 
GeneralRe: forms maximize and minimum Pin
Heath Stewart28-Oct-04 16:16
protectorHeath Stewart28-Oct-04 16:16 
GeneralGDI+ usercontrol problem Pin
bobrad28-Oct-04 15:44
bobrad28-Oct-04 15:44 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart28-Oct-04 16:32
protectorHeath Stewart28-Oct-04 16:32 
GeneralRe: GDI+ usercontrol problem Pin
bobrad28-Oct-04 17:10
bobrad28-Oct-04 17:10 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart29-Oct-04 5:37
protectorHeath Stewart29-Oct-04 5:37 
GeneralRe: GDI+ usercontrol problem Pin
bobrad29-Oct-04 6:07
bobrad29-Oct-04 6:07 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart30-Oct-04 2:22
protectorHeath Stewart30-Oct-04 2:22 
You don't need to paint the parent control - that's what I've been trying to say. It gets automatically repainted when anything affects any part of its client area. If that client area includes your control then your control gets the WM_PAINT message (translates to the OnPaint method, which fires the Paint event - which you should handle in your derivative control since it's slower and you have less control) and you should repaint only the area (the PaintEventArgs.ClipRectangle, although with more complex graphics that can be difficult).

If you want examples of owner-drawn controls, just search here at CodeProject. There are dozens - if not hundreds - of examples of just about every type of control you can think of (and good and bad articles, so watch the article rating near the top...and longer articles are usually a sign of more detailed articles that you should take a look at).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalbind datagrid to a variable Pin
xiaowenjie28-Oct-04 15:29
xiaowenjie28-Oct-04 15:29 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart28-Oct-04 16:13
protectorHeath Stewart28-Oct-04 16:13 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie28-Oct-04 19:08
xiaowenjie28-Oct-04 19:08 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart29-Oct-04 5:38
protectorHeath Stewart29-Oct-04 5:38 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie29-Oct-04 6:15
xiaowenjie29-Oct-04 6:15 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie29-Oct-04 6:29
xiaowenjie29-Oct-04 6:29 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart30-Oct-04 2:58
protectorHeath Stewart30-Oct-04 2:58 
GeneralCOM Interopability problem Pin
iliyang28-Oct-04 10:57
iliyang28-Oct-04 10:57 
GeneralRe: COM Interopability problem Pin
Heath Stewart28-Oct-04 16:04
protectorHeath Stewart28-Oct-04 16:04 
QuestionKeeping context menu open even after clicking? Pin
Carl Mercier28-Oct-04 9:29
Carl Mercier28-Oct-04 9:29 
AnswerRe: Keeping context menu open even after clicking? Pin
Heath Stewart28-Oct-04 15:58
protectorHeath Stewart28-Oct-04 15:58 
GeneralRe: Keeping context menu open even after clicking? Pin
Carl Mercier29-Oct-04 3:50
Carl Mercier29-Oct-04 3:50 
GeneralRe: Keeping context menu open even after clicking? Pin
LongRange.Shooter29-Oct-04 6:50
LongRange.Shooter29-Oct-04 6:50 
AnswerRe: Keeping context menu open even after clicking? Pin
perlmunger29-Oct-04 9:09
perlmunger29-Oct-04 9:09 
Generalabout device instance enumeration Pin
momer28-Oct-04 9:07
momer28-Oct-04 9:07 
GeneralRe: about device instance enumeration Pin
Heath Stewart28-Oct-04 15:53
protectorHeath Stewart28-Oct-04 15:53 
GeneralRegistry problem..! Pin
QzRz28-Oct-04 8:03
QzRz28-Oct-04 8:03 

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.