Drawing over the top of controls like the when the Designer re-Dra

G

Guest

I have created a design surface that users can drop controls onto. I want
the user to be able tp select a control and drag the corners to resize. WHen
the designer does this the dotted line moves seamlessly over the top of
multiple controls. WHen I Draw this expanding rectangle it moves behind the
dropped controls and paints on the Surface Panels' Graphic surface.

Question: How do I draw over the top of multiple existing controls on a page.
 
B

Bryan Phillips

The controls in the .Net Framework already have designers that you have
used in the VS IDE. Ever think about providing the same functionality
in your app? You simply need to provide the same type of environment
for the controls to run in by exposing interfaces (services) that the
control designers can consume.
 
G

Guest

Hi,
Look for help on System.Windows.Forms.ControlPaint.DrawFocusRectangle at MSDN
Hope this helps
 
G

Guest

HaySeed said:
I have created a design surface that users can drop controls onto. I want
the user to be able tp select a control and drag the corners to resize. WHen
the designer does this the dotted line moves seamlessly over the top of
multiple controls. WHen I Draw this expanding rectangle it moves behind the
dropped controls and paints on the Surface Panels' Graphic surface.

Question: How do I draw over the top of multiple existing controls on a page.

Tanks for the response Bryan. Do you know where I would look to read more
about this approach?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top