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

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Hi,
Look for help on System.Windows.Forms.ControlPaint.DrawFocusRectangle at MSDN
Hope this helps
 
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?
 
Back
Top