Click here to Skip to main content
15,881,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Forms/Controls Pin
David Stone7-Jan-04 20:31
sitebuilderDavid Stone7-Jan-04 20:31 
GeneralRe: C# Forms/Controls Pin
Luther Baker7-Jan-04 20:28
Luther Baker7-Jan-04 20:28 
The first method works, and provides my insets.

But regarding option #2, the point of the border was to "pad" the form. I do in fact, get the border to draw, but the child controls still Dock against the edges of the form, overlapping even the border I am drawing.

Should I somehow affect the Form.ClientRectangle {get;} before forwarding to base.OnPaint () so that the border I've drawn is not overlapped by child controls? Or shall I work it out by attaching child controls to a singular, centered child Panel again?

Also - what is the Form.ClipRectangle represent? The area that needs repainting? In my little app, its always 0,0,0,0. Shouldn't it be equal to the Form.ClientRectangle? It is 0,0,0,0 every time OnPaint gets called. Even when the app is completely hidden by other windows - and then pulled to the front.

Regardless, thats just neat stuff.

Thanks,

-Luther
GeneralRe: C# Forms/Controls Pin
Heath Stewart8-Jan-04 4:18
protectorHeath Stewart8-Jan-04 4:18 
GeneralC# SystemFonts Pin
Luther Baker7-Jan-04 13:49
Luther Baker7-Jan-04 13:49 
GeneralRe: C# SystemFonts Pin
Heath Stewart7-Jan-04 18:30
protectorHeath Stewart7-Jan-04 18:30 
GeneralRe: C# SystemFonts Pin
Luther Baker7-Jan-04 19:38
Luther Baker7-Jan-04 19:38 
Generalclicking "Open with" when multiple files are selected Pin
Anonymous7-Jan-04 13:12
Anonymous7-Jan-04 13:12 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Kentamanos7-Jan-04 14:25
Kentamanos7-Jan-04 14:25 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Anonymous7-Jan-04 20:24
Anonymous7-Jan-04 20:24 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Kentamanos7-Jan-04 20:38
Kentamanos7-Jan-04 20:38 
GeneralRe: clicking "Open with" when multiple files are selected Pin
blakeb_18-Jan-04 11:52
blakeb_18-Jan-04 11:52 
GeneralRe: clicking "Open with" when multiple files are selected Pin
Kentamanos8-Jan-04 12:08
Kentamanos8-Jan-04 12:08 
GeneralC# Deployment Question Pin
Larry J. Siddens7-Jan-04 9:18
Larry J. Siddens7-Jan-04 9:18 
GeneralRe: C# Deployment Question Pin
Mazdak7-Jan-04 9:24
Mazdak7-Jan-04 9:24 
GeneralRe: C# Deployment Question Pin
Niels Penneman7-Jan-04 9:26
Niels Penneman7-Jan-04 9:26 
GeneralRe: C# Deployment Question Pin
Larry J. Siddens7-Jan-04 10:12
Larry J. Siddens7-Jan-04 10:12 
GeneralRe: C# Deployment Question Pin
Kentamanos7-Jan-04 10:18
Kentamanos7-Jan-04 10:18 
GeneralRegular Expressions Pin
Member 8054957-Jan-04 8:34
Member 8054957-Jan-04 8:34 
GeneralRe: Regular Expressions Pin
Kentamanos7-Jan-04 9:27
Kentamanos7-Jan-04 9:27 
GeneralRe: Regular Expressions Pin
Heath Stewart7-Jan-04 9:30
protectorHeath Stewart7-Jan-04 9:30 
GeneralRe: Regular Expressions Pin
Member 8054957-Jan-04 9:55
Member 8054957-Jan-04 9:55 
GeneralRe: Regular Expressions Pin
Kentamanos7-Jan-04 11:08
Kentamanos7-Jan-04 11:08 
GeneralRe: Regular Expressions Pin
Heath Stewart7-Jan-04 11:11
protectorHeath Stewart7-Jan-04 11:11 
GeneralRe: Regular Expressions Pin
Eric Gunnerson (msft)7-Jan-04 9:55
Eric Gunnerson (msft)7-Jan-04 9:55 
GeneralRe: Regular Expressions Pin
Member 8054957-Jan-04 9:58
Member 8054957-Jan-04 9:58 

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.