ToolStripDropDownButton

  • Thread starter Thread starter Priya
  • Start date Start date
P

Priya

I accidentally deleted the toolstrip which had the
ToolStripDropDownButton. 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
 
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.
 
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 toolstripdropdownbutton
or should i just use the toolstrip control from the tool box and make
changes for it to be a toolstripdropdownbutton ?

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

thanks,
Priya
 
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).
 
Do u have links to samples ? I can google and find out as well . i was
just being a bit lazy :)
 
Priya,

I don't have any samples, sorry, but the documentation for the controls
should have some.
 
Back
Top