473,848 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolStripContai ner

I accidentally drop this control onto my form, how do I delete that ?
Jul 6 '06 #1
2 9344
Alan,
>I accidentally drop this control onto my form, how do I delete that ?
It's a bit tricky to delete a ToolStripContai ner, that's for sure. This is
because clicking it normally will not select the whole control but instead
just a part of it.

Here's what you can do, assuming your ToolStripContai ner is empty:

1. Right-click the blue area, point to Select and then to the name of your
control (ToolStripConta iner1). Then press Delete.

2. Click the blue area, and then click the small "collapse arrow" that
points upward (it requires patience to point your mouse at the correct
location). This will select the control, so just delete normally afterwards.

Finally, you could navigate to your form's designer managed code file and
delete the code that creates the control. However, this is usually not the
recommended approach.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethi s.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 6 '06 #2
Thanks.
It works.

"Jani Järvinen [MVP]" <ja***@removeth is.dystopia.fiw rote in message
news:uz******** ******@TK2MSFTN GP04.phx.gbl...
Alan,
>>I accidentally drop this control onto my form, how do I delete that ?

It's a bit tricky to delete a ToolStripContai ner, that's for sure. This is
because clicking it normally will not select the whole control but instead
just a part of it.

Here's what you can do, assuming your ToolStripContai ner is empty:

1. Right-click the blue area, point to Select and then to the name of your
control (ToolStripConta iner1). Then press Delete.

2. Click the blue area, and then click the small "collapse arrow" that
points upward (it requires patience to point your mouse at the correct
location). This will select the control, so just delete normally
afterwards.

Finally, you could navigate to your form's designer managed code file and
delete the code that creates the control. However, this is usually not the
recommended approach.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethi s.dystopia.fi
http://www.saunalahti.fi/janij/


Jul 6 '06 #3

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

Similar topics

0
3372
by: Alexander Bolotnov | last post by:
Hello all, is there a way to dock a toolStripContainer into a Form and make it resize the Form when the control that is added to the ContentPanel is larger then then ContentPanel? In case there are other suggestions, what I am trying to get is this: I have a form with menu strip on the top and buttom. I need to add a control (UserControl) between them two and make the form resize itself to fit the content.
1
2473
by: Joe | last post by:
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
0
1382
by: PiotrKolodziej | last post by:
Hi. I have crated treewiev with 3 nodes. Each of them has to be assigned to 3 different panels. How to force Form to change them. I used Visible property but it's not working ( only one panel is on top when i click eah node ). Then i tought that maybe i should place them in toolStripcontaner and in some dynamic way change the content. Can anyone suggest me how to do this in a good way? Thanks
0
1613
by: Gary Brown | last post by:
Hi, I am redoing some existing C# code to take advantage of new ..NET 2005 controls. It was originally written for .NET 2003. The ToolStripContainer is a puzzlement I can't move an existing ToolStrip onto it with the designer. I must start one from scratch. I can't delete, undo, or resize it.
0
1516
by: Neeraj | last post by:
Hi I want to know that how to auto hide ToolStripContainer on Mouse over. or is there any better tools available in .net which will auto hide on mouse over ,something similar to Visual studio property page or solution explorer, which will auto hide on mouse move. Please help m ewith this issue. Regards.
2
4533
by: jcvoon | last post by:
Hi: I'm using VS2005, I've create a winform with the following controls: Add a ToolStripContainer Set it to dock to the form (Fill) Click in the top section. Add a menu strip Add a tool strip. Add another tool strip.
4
2998
by: BradFuller | last post by:
I am trying to build a program in VS 2005 with C#, but I have ran into a problem I have yet to find a solution to and I know it is probably something simple. I have a tabcontrol container and inside each tabpage I want to place a toolstripcontainer with the buttons, textboxes, datagridviews, etc inside this toolstripcontainer. This is all fine but when I resize the window it does not create a scroll bar when it is sized smaller than the...
2
1969
nev
by: nev | last post by:
I use mdi app and place a toolstripcontainer dock=fill. But when I try to open its the childform, it cannot be seen. I guess its under the toolstripcontainer. How to do this?
0
316
by: R.A.F. | last post by:
Hi, I have a ToolStripContainer in my SDI application. on the ContainerPanel(in center) i would like to display several forms. for that user can select in the menu some forms to display. However, how can i display/show the selected form on the ContainerPanel ? thanks a lot, RAF
0
9893
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11005
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9501
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7894
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7070
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4139
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.