Dockable ToolStrip etc

Arix

Newcomer
Joined
Jun 8, 2006
Messages
3
1. Is it possible to dock and move around a ToolStrip control at runtime (like the toolbars in VS2005 and MS Office, for example)?

2. Why is the designer disabled for ToolStrip, MenuStrip or StatusStrip controls, when they are members of a base form, not the current one?

Thank you.
 
1. Yes. Embed it in a ToolStripContainer. You won't get floating toolbar functionality but the rest is there.

2. Because it is. If you are programming in C# chances are that it is declared as private anyways, but even if it isn't, the (often unfortunate) fact is that designer doesn't allow editing of inherited controls. It would be nice if we had a template form with a toolbar with the basic buttons where we could add task-specific buttons at design-time, but we don't. It bothers me too, but what are you going to do about it. The next best thing would be to expose a collection of ToolStripButton objects to the designer through a form-wide property that would add buttons at runtime, but that might be a little easier said than done.
 
Back
Top