471,306 Members | 836 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Prevent some Toolstrips from dropping on some ToolStripContainer

I have a few ToolStripContains and ToolStrips in my app and only want
certain ToolStrips to be able to be dropped on certain ToolStripContainers.
Is there anyway to do this? I tried the DragEnter event of the
ToolStripContainer but it didn't help.

Jan 15 '06 #1
1 2338
Hello Joe,

In VS.NET 2005, ToolStrips can be draged btween ToolStripContainers by
default. For example, we can put two ToolStripContainers on a form ( We may
change the back color of the Containerpanel so that we can recognize them
from form). Put a ToolStrip on one of ToolStripContainers, dock it on the
top panel. And run the program, you will be able to drag and drop the

If you want a ToolStripContainer to reject a certain ToolStrip, you may add
some code in:

ToolStripContainer_TopToolStripPanel_ControlAdded( )

remove the last added control and and its back to original

Hope this help,


Jan 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.