prevent dragndrop of ToolStrip

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi,
In my form I have two ToolStripPanels (TSP), one docked on the left,
the other docked on the right.

Each of those TSP contains a ToolSrip control. I would like to allow
the ToolStrips to move on their respective TSP they belong to, but
prevent dragndrop of ToolStrips from one TSP to the other.

How can I do that?

Thank you.
 
hi Sam,
have you checked ToolStripPanels' dragdrop property. if not give it a
look and c whether it is true or false. if it is true than make it
false. i;m not sure the cotrol has this property but as it is also
inherited from the container class it must have it.
 
Hi Lucky,

Thank you for your reply.

I've set the following:

Me.ToolStripPanel1.AllowDrop = False


But it didn't change anything. And anyway, as I said, I want to prevent
dragndrop from one TSP to another but still have the possibility to
move the Toolstrips on their respective TSP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top