Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-02-2009
Member
 
Join Date: Feb 2009
Posts: 5
ListBox Drop down menu in vb.net

Hi,

Is it possible to show the list box drop down menu only when a user "right click" on an Item?
Reply With Quote
  #2  
Old 14-02-2009
Member
 
Join Date: Jan 2009
Posts: 38
Re: ListBox Drop down menu in vb.net

Visit this webpage!
http://office.microsoft.com/en-us/in...030201033.aspx
Reply With Quote
  #3  
Old 14-02-2009
Member
 
Join Date: May 2008
Posts: 40
Re: ListBox Drop down menu in vb.net

Make a context menu strip and add the items to it then:

Code:
Private Sub ListBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
        If e.Button = Windows.Forms.MouseButtons.Right Then
            ContextMenuStrip1.Show(MousePosition)
        End If
    End Sub
when you right click listbox1 it should show the contextmenu.
Reply With Quote
  #4  
Old 16-02-2009
Member
 
Join Date: Feb 2009
Posts: 5
Re: ListBox Drop down menu in vb.net

Hey thanks a lot for the code!
I will give it a try in my application & let you know if this works for me?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "ListBox Drop down menu in vb.net"
Thread Thread Starter Forum Replies Last Post
How to add drop-down menu in Word ? Japheth Windows Software 21 19-01-2013 02:29 AM
Windows 7: Drop-down Menu Malfunction Esmel Operating Systems 4 13-12-2010 10:25 AM
Java drop down menu Ameeryan Software Development 3 05-11-2009 01:33 PM
How to create drop down menu in php Sukhvinder Software Development 3 06-08-2009 11:42 AM
How to add drop-down menu in Word ? Japheth Windows Software 0 23-03-2009 02:28 PM


All times are GMT +5.5. The time now is 12:02 PM.