473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Prevent some Toolstrips from dropping on some ToolStripContainer

Joe
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.

Thanks,
Joe
Jan 15 '06 #1
1 2430
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
ToolStrip.

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
ToolStripContainer.

Hope this help,

Luke

Jan 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sam | last post by:
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...
1
by: Rudderius | last post by:
Hey, I'm working on a winform app in VS 2005. I'm wondering if someone knows some best practices on how to organize the toolstrips. I have a menuToolStrip and some other toolstrips. As in many...
0
by: 7829 | last post by:
Is there a way to serialize the positions of the toolstrips and menu (when docked in a ToolStripContainer), to a binary file? Thanks.
0
by: =?Utf-8?B?SnVzdGluIFJvYmVydHM=?= | last post by:
Hi I am developing a windows app. in VB using VS2005. I have multiple toolstrips (and toolstrip containers) where I want users to move buttons around (using {Alt} + drag) inside the toolstrips,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.