![]() |
Desktop Development »
Miscellaneous »
Miscellaneous Controls
Intermediate
Docking control with tear-away frame tool windowsBy IridarA container control that tears away into a tool window when dragged |
C#, .NET, Win2K, WinXP, Win2003, Visual Studio, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

Well, never being one to be easily satisfied, I was quite happy to find Phil Wright's excellent article on docking controls. However, I of course wanted more. I wanted a control that would behave like a container in the design environment, and would allow me to tear it away from the sides of its container and drop it wherever I wanted it.
So, using Phil's work as a base (thanks, Phil!) I extended his control to give it a little more design flexibility and a way to move it around more like a Visual Studio tool window.
Using the control is simple. Just copy the .cs and .resx files into your project directory and include them in the project itself. You'll either have to add an Images directory to your project for the tool's icon or change the [ToolboxBitmap ....] line in the .cs file to point to an image you want to use. Then, use it like any other control.
Anyhow, it needs a little work (I'll try to keep new versions posted), but it's enough to get you started. Enjoy!
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 6 Jul 2003 Editor: Smitha Vijayan |
Copyright 2003 by Iridar Everything else Copyright © CodeProject, 1999-2009 Web21 | Advertise on the Code Project |