Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...