Results 1 to 4 of 4

Thread: ListBox Drop down menu in vb.net

  1. #1
    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?

  2. #2
    Join Date
    Jan 2009
    Posts
    38

    Re: ListBox Drop down menu in vb.net


  3. #3
    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.

  4. #4
    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?

Similar Threads

  1. How to add drop-down menu in Word ?
    By Japheth in forum Windows Software
    Replies: 21
    Last Post: 19-01-2013, 02:29 AM
  2. Windows 7: Drop-down Menu Malfunction
    By Esmel in forum Operating Systems
    Replies: 4
    Last Post: 13-12-2010, 10:25 AM
  3. Java drop down menu
    By Ameeryan in forum Software Development
    Replies: 3
    Last Post: 05-11-2009, 01:33 PM
  4. How to create drop down menu in php
    By Sukhvinder in forum Software Development
    Replies: 3
    Last Post: 06-08-2009, 11:42 AM
  5. How to add drop-down menu in Word ?
    By Japheth in forum Windows Software
    Replies: 0
    Last Post: 23-03-2009, 02:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,622,285.73632 seconds with 16 queries