Re: draw over child controls
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 4 Feb 2006 22:16:15 +0100
Use the ControlPaint DrawReversiblexxx routines. They cheat by drawing
directly on the decktop so over the top of the child controls too.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Michele" <m.0.m@xxxxxxxx> wrote in message
news:1138967606.169215.192800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all!
I'm writing a win form application in c# with framework 2.0.
I have a panel on which I add my custom controls.
I'd like the panel to draw a mouse selection rectangle: exactly the
same as windows explorer does when you want to select more than one
file dragging the mouse.
I've tried to draw a blue semi-transparent rectangle overriding panel's
OnPaint method, but child controls are always drawn over it.
How could I obtain the same?
I could change my custom control's model... but is there another way?
Thanks in advance.
.
- References:
- draw over child controls
- From: Michele
- draw over child controls
- Prev by Date: Re: PrinterSettings: SetHdevmode/SetHdevnames
- Next by Date: Re: Imprecise GDI+ drawing algorithms? (circles)
- Previous by thread: draw over child controls
- Next by thread: A generic error occurred in GDI+ exception, and Red X displayed on Form
- Index(es):
Relevant Pages
|