Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2007

Tip: Looking for answers? Try searching our database.

Button with Dropdown

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew  Neillans - 22 Mar 2007 11:21 GMT
Hi all,

Is it possible (in .NET 2) to have a standard button feature a drop
down element, the same as you can see on the open dialog (the open
button has Open and Open With on a dropdown)?

Does anyone know of any 3rd party controls that implement this?

Regards,

Andy
Tony Wissler - 23 Mar 2007 03:06 GMT
Andrew-

I need a similar feature on one of my applications, luckily I had some
leadway on where exactly the button was position, though I could not make it
a ToolStrip button along the top of the form.

What I did was:
I added a Panel Control to my form and made it small, a little larger then
the size I needed.
Next, I added a ToolStrip Container Control into the small panel and only
selected Top.
I then added a ToolStrip Control to the ToolStrip Container Control added
the two SplitButtons to the ToolStrip with the drop down and set the
properties as needed on my ToolStrip Buttons and ToolStrip Control.
You can set the properties on the ToolStrip Containter, ToolStrip and
Buttons so that you won't really be able to distinguish it from a 'normal'
button control.

If you come up with an alternate solution, let me know - I would be
interested to hear how you implement this.

Thanks-

Tony Wissler
tewissler@REMOVEME.gmail.com
Dad, MCP, MCSE

> Hi all,
>
[quoted text clipped - 7 lines]
>
> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.