tags:

views:

44

answers:

3

I need to create some mini-windows, like the ones shown in the image bellow, in my winform main form.

It would be nice if they could be draggable, resizable, and, mainly, closable. How can I approach this design? Has anybody already seen some control (with code available) implementing something similar?

alt text

+4  A: 

A normal Form works fine for this. Set its FormBorderStyle to either FixedToolWindow or SizableToolWindow as desired.

If you want to keep your floating windows inside your main window, use MDI (Multiple Document Interface). Here is a tutorial (Google can find you many more).

Thomas
Thanks, that worked. The problem now is that I have a Graphics object created from a control that is in the MDI Parent. When I open the child MDI frame, the graphics control get over the opened window. I played with some frame properties, but I couldn't get around this problem.
Poco
A: 

Have you tried just setting the FormBorderStyle property to SizeableToolWindow?

Is that what you're after?

Simon P Stevens
A: 

You can create them as resizable and draggable custom controls.

You could use my example at:

http://hourlyapps.blogspot.com/2008/07/resizable-and-movable-controls-c-net.html

Jader Dias