Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: Abstract, Interface, and Attribute Pin
bnieland8-Jan-04 6:50
bnieland8-Jan-04 6:50 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 7:46
TuringTest18-Jan-04 7:46 
GeneralQuoted-Printable Decoder Pin
7-Jan-04 18:33
suss7-Jan-04 18:33 
GeneralRe: Quoted-Printable Decoder Pin
Heath Stewart7-Jan-04 19:00
protectorHeath Stewart7-Jan-04 19:00 
GeneralRe: Quoted-Printable Decoder Pin
Blue Tender7-Jan-04 19:23
Blue Tender7-Jan-04 19:23 
GeneralRe: Quoted-Printable Decoder Pin
Heath Stewart8-Jan-04 3:57
protectorHeath Stewart8-Jan-04 3:57 
QuestionHow can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 17:14
sxbyl7-Jan-04 17:14 
AnswerRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart7-Jan-04 18:48
protectorHeath Stewart7-Jan-04 18:48 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 19:00
sxbyl7-Jan-04 19:00 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart7-Jan-04 19:03
protectorHeath Stewart7-Jan-04 19:03 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl7-Jan-04 19:18
sxbyl7-Jan-04 19:18 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart8-Jan-04 3:44
protectorHeath Stewart8-Jan-04 3:44 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl8-Jan-04 14:06
sxbyl8-Jan-04 14:06 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
Heath Stewart8-Jan-04 16:44
protectorHeath Stewart8-Jan-04 16:44 
GeneralRe: How can I get some objects like HttpContext when using SingleCall SAOS and does not host in IIS (with HttpChannel) Pin
sxbyl8-Jan-04 16:55
sxbyl8-Jan-04 16:55 
GeneralHttpWebRequest Pin
murali_utr7-Jan-04 17:04
murali_utr7-Jan-04 17:04 
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 

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.