Reputation: 1229
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 http://img716.imageshack.us/img716/5765/imagea.png
Upvotes: 2
Views: 261
Reputation: 90495
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
Upvotes: 0
Reputation: 27499
Have you tried just setting the FormBorderStyle property to SizeableToolWindow?
Is that what you're after?
Upvotes: 0
Reputation: 181855
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).
Upvotes: 4