gsb
gsb

Reputation: 1229

WinForms "mini-windows"

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

Answers (3)

Jader Dias
Jader Dias

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

Simon P Stevens
Simon P Stevens

Reputation: 27499

Have you tried just setting the FormBorderStyle property to SizeableToolWindow?

Is that what you're after?

Upvotes: 0

Thomas
Thomas

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

Related Questions