Closed Thread
Results 1 to 2 of 2

Thread: Right-Click menu

  1. #1
    travy92's Avatar
    travy92 is offline Learning Programmer
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    76
    Rep Power
    17

    Question Right-Click menu

    Is it possible to make a right-click menu? Like when you right-click a file and the menu comes up with "save, delete" etc.

    BTW i'm using VB 6.0

    Any help would be much appreciated!
    C:\Users\Travis\Desktop\Image Converter\Knight1.bmp

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    PaulM is offline Newbie
    Join Date
    Oct 2007
    Location
    Australia, Melbourne
    Posts
    8
    Rep Power
    0
    Its real simple, create a menu and all you have to do is

    Code:
    Me.PopupMenu mnunamehere
    so as an example i have a Edit menu and on my RichTextBox control i have the following code so users can click the right button and use the edit tools.

    Code:
    Private Sub RTB_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    If Button = vbRightButton Then
    Me.PopupMenu mnufile
    End If
    End Sub
    Regards, Paul

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. with menu
    By neelle26 in forum C and C++
    Replies: 4
    Last Post: 12-11-2010, 04:40 AM
  2. Replies: 0
    Last Post: 11-13-2010, 10:58 AM
  3. Need help with Click()
    By w!ck3d in forum JavaScript and CSS
    Replies: 2
    Last Post: 06-21-2009, 01:19 AM
  4. On Click
    By Ricardo-san in forum JavaScript and CSS
    Replies: 6
    Last Post: 04-19-2009, 08:17 AM
  5. Window.Forms: menu appears after headline click
    By dvelpo in forum C# Programming
    Replies: 0
    Last Post: 09-11-2008, 03:11 AM

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