Results 1 to 8 of 8

Thread: Big problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    22

    Exclamation

    Is it possible to activate a menu with the right mouse click ?

    Thanks

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    don't understand what u mean??
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    22
    For exemple with winamp:
    when you click (right click) on the main window, a menu appear.
    Can I do this with vb ?

    Do you understand, now ?

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849
    You need to create a reguler menu usung the menu editor.
    Like:
    File (mnuFile)
    ....About (mnuAbout)
    ....Minimize (mnuMini)
    ....Exit (mnuExit)

    make the mnu file not visible.

    the code is:

    Private Sub Command1_Click()
    PopupMenu Form1.mnuFile
    End Sub
    Dekel C.

  5. #5
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I understand but I will have to get back to u cos I can't remmember straight off. Mind I saw something like this in one of VB-Worlds topics
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    22
    Just one thing: how can i do a demarcation between two menu ?


    Thanks

  7. #7
    Guest
    Right click:

    Code:
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 2 Then PopupMenu MyMenu
    End Sub
    And a demarcation in the menu, add a hyphen as the caption: -

    (For the post below: My mistake! )

    [Edited by Matthew Gates on 09-09-2000 at 01:27 PM]

  8. #8
    Guest
    Shouldn't it be PopupMenu MyMenu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width