Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to design drop down menu in .net windows application
(like css vertical expand collapse menu in asp .net application( refer avast antivirus home page image i think this is a windows application))

can any one please help me to solve this issue

thanks in advance
(Keerthi Kumar)
Posted

1 solution

Dropdowns are called ComboBox[^] in Windows Forms as well as in WPF[^]. Which one you use depends on what variant of windows application you're creating (Forms or WPF).

[Edit]
For something more individual, you have to build your control on more basic stuff.

You need an event upon which your dropdown is shown. And you need another event upon which it is hidden again.

What you pointed to looks like a Label[^] that shows the dropdown on its MouseEnter event[^]. The dropdown vanishes on the label's MouseLeave event[^] as well as on its own MouseLeave event.

The dropdown itself can be implemented as a UserControl[^] that you can design to look like what you want it to.
[/Edit]
 
Share this answer
 
v2
Comments
Keerthi Kumar(Andar) 20-Aug-13 2:15am    
Lukeer Thanks a lot for showing interest in my quetion.
am a fresher.I don know about WPF .but i can try if u help me.
can you please check avast home page? i wanted to design like that.
lukeer 20-Aug-13 2:40am    
I don't know anything about WPF either. I'm currently working on Windows Forms. But from what I read, fundamental principles are the same.

I updated my answer to include some hints on where to look for further information.
Keerthi Kumar(Andar) 20-Aug-13 2:48am    
is it possible to design like master page in windows forms application?
lukeer 20-Aug-13 3:50am    
In Windows Forms, a Form[^] acts like a MasterPage. Inside it, you place, hide, move or in other way use your Controls.
Sadique KT 20-Aug-13 3:31am    
check for some third party tools like DevExpress Controls, Telerik controls etc..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900