473,569 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolStripDropDo wnButton

I accidentally deleted the toolstrip which had the
ToolStripDropDo wnButton. Is there a easy way to get it back. The code
for the toolstrip still exists, its just that I cant see it in the
designer. I was wondering if there was any other way rather than
re-doing the entire thing again..

Thanks in advance for the help.

-Priya

Jan 12 '06 #1
5 3863
Priya,

Unfortunately, no. If you do delete it, you might be able to do a
Ctrl-Z to undo, but if you already made other changes or whatnot (which you
have done by now) or closed VS.NET, then no, you can't.

Why not just add the button again, with the same name, and set the
properties? That's what a designer is for, to make these tasks easy. Your
code which references that name will be all the same and should work.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Priya" <pr********@gma il.com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
I accidentally deleted the toolstrip which had the
ToolStripDropDo wnButton. Is there a easy way to get it back. The code
for the toolstrip still exists, its just that I cant see it in the
designer. I was wondering if there was any other way rather than
re-doing the entire thing again..

Thanks in advance for the help.

-Priya

Jan 12 '06 #2
HI Nicholas,
Thank you for your response. I tried doing that but then I get a message
saying that name that I am using to name the control already exists :(

Is there a special type of toolstrip control for toolstripdropdo wnbutton
or should i just use the toolstrip control from the tool box and make
changes for it to be a toolstripdropdo wnbutton ?

appreciate your help ..also if you have links to do this please let me
know ..

thanks,
Priya
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Jan 12 '06 #3
Priya,

The tool strip drop down button is for ToolStrip instances. They are
part of .NET 2.0, I believe. They are not compatable with the old menu
system.

You might just have to code it from scratch again (at least, the
toolstrip and the drop down).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Priya" <pr********@gma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
HI Nicholas,
Thank you for your response. I tried doing that but then I get a message
saying that name that I am using to name the control already exists :(

Is there a special type of toolstrip control for toolstripdropdo wnbutton
or should i just use the toolstrip control from the tool box and make
changes for it to be a toolstripdropdo wnbutton ?

appreciate your help ..also if you have links to do this please let me
know ..

thanks,
Priya
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Jan 12 '06 #4
Do u have links to samples ? I can google and find out as well . i was
just being a bit lazy :)

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Jan 12 '06 #5
Priya,

I don't have any samples, sorry, but the documentation for the controls
should have some.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Priya" <pr********@gma il.com> wrote in message
news:OH******** ******@TK2MSFTN GP10.phx.gbl...
Do u have links to samples ? I can google and find out as well . i was
just being a bit lazy :)

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Jan 12 '06 #6

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

Similar topics

1
3053
by: GatorBait | last post by:
Hi all, I'm using the new ToolStrip control in a project and I'm running into a problem that I'm hoping someone can help me with. I am building the toolstrip in code by adding buttons, seperators, and dropdown buttons (which have MenuItems added to it). The ToolStrip gets built perfectly, but the problem I am having is accessing the click...
1
1853
by: Adam Honek | last post by:
Hi, I have a toolstrip on a form. One of the parts that comprise this toolstrip is a ToolStripDropDownButton I'm trying to catch these events but somehow it's not working how. I'm using the code below. How do I do it? I am right converting it into a ToolStripDropDownButton
4
9167
by: Adam Honek | last post by:
I have a ToolStrip. The ToolStrip has a ToolStripDropDownButton with 3 ToolStripMenuItems My question is how do I catch the click event ot these 3 ToolStripMenuItems? I tried the below but it doesn't catch the events: Private Sub LowPriorityToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
5
3465
by: Ben R. | last post by:
Hi, I have a ToolStripDropDownButton and would like to databind a list of menuitems for its associated ToolStripDropDown object. Is this possible? The ToolStripDropDown class doesn't have a datasource property. Do I need to manually enumerate through my array and add the items one by one? Thanks... -Ben
1
1703
by: Alan T | last post by:
private void MainForm_Load(object sender, EventArgs e) { tsHelpDropDownButton.MouseLeave += new EventHandler(this.MenuDropDownButton_MouseLeave); } private void MenuDropDownButton_MouseLeave(object sender, EventArgs e)
2
7058
by: andylotus | last post by:
Hi People I have a WinForm program. The UI contains a ToolStripDropdownButton, which is associate a list of menu items of ToolStripMenuItem, created dynamically. Upon different scenarios of user operations, the DropdowButton need to clean up all its menuitems, and create new ones. Here the codes: //////////////////// Void...
3
8609
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I need to show a custom control in the DropDown of a Windows.Forms.ToolStripMenuItem (e.g., similar to the Font Color menu item in Word except that the control is specific to my application). I tried adding the control to Windows.Forms.ToolStripMenuItem.DropDown.Controls but doing so raises a NotSupported exception. Are there any standard...
2
2213
SammyB
by: SammyB | last post by:
I have a ToolStrip control on a windows app that contains a ToolStripDropDownButton. When the button is pressed, I would like the menu to display just icons for each choice with no text. If I add a ToolStripMenuItem to the ToolStripDropDownButton DropDownItems, I can set the DisplayStyle to Image instead of ImageAndText, but I still get about...
1
3098
pbala
by: pbala | last post by:
hi, I created one ToolStripDropDownButton in vb.net. I will like to put methods for every drop down items and as well as the Button Menu.... how it possible
0
7710
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...
0
8144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7692
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6313
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...
0
5244
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...
0
3666
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2128
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1235
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
969
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...

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.