Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make a button on a form behave like a button on a toolStrip? VS2008

How do I make a button on a form behave like a button on a toolStrip?

I want a menu-type list to come down. I tried using a toolStripContainer but it is very hard to manipulate to get it to behave as just one button.

Is there an easier way than just putting a toolStrip with one button in a toolStripContainer?

Thanks.

like image 225
Chris Avatar asked Dec 04 '25 15:12

Chris


1 Answers

Forget the ToolStripContainer, just use a ToolStrip (with 1 button).

set

toolStrip1.Dock = DockStyle.None;
toolStrip1.AutoSize = true 
like image 124
Henk Holterman Avatar answered Dec 07 '25 04:12

Henk Holterman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!