Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: HttpWebRequest Pin
Heath Stewart7-Jan-04 18:41
protectorHeath Stewart7-Jan-04 18:41 
GeneralRe: HttpWebRequest Pin
murali_utr7-Jan-04 19:11
murali_utr7-Jan-04 19:11 
GeneralC# Forms/Controls Pin
Luther Baker7-Jan-04 14:24
Luther Baker7-Jan-04 14:24 
GeneralRe: C# Forms/Controls Pin
Heath Stewart7-Jan-04 18:38
protectorHeath Stewart7-Jan-04 18:38 
GeneralRe: C# Forms/Controls Pin
Luther Baker7-Jan-04 19:37
Luther Baker7-Jan-04 19:37 
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 
GeneralRe: C# Forms/Controls Pin
Heath Stewart8-Jan-04 4:18
protectorHeath Stewart8-Jan-04 4:18 
You mean the PaintEventArgs.ClipRectangle? The clipping region is the area that has been invalidated and needs repainting, yes. This will not affect the controls themselves, however (as you've noticed). In order to do that, you have to position the child controls. Changing this clipping region will have no affect, other than perhaps not painting all the invalidated regions.

As far as it being straight zeros all the time, this doesn't seem right. Try overlapping it party with another window, or opening a dialog on your app and see if the clipping region is something else. I've done quite a bit of this and have never seen an "empty" rectangle. My other suspision is that - since the default value for numeric types of which Rectangle is made is 0, that you might have some bug in your code (no offense - just meant as another possibility).

On a side note, clipping regions are often used to make non-rectangular dialogs, like Windows Media Player, RealOne, etc. Windows Layers are a better alternative but is only supported in Win2K and up and isn't as easy to program (though better in the long-run).

 

-----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-----
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 

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.