RIGHT CLICK MENU??? 
Author Message
 RIGHT CLICK MENU???

HI CAN YOU TELL ME  HOW YOU GET THE RIGHT CLICK MENU IN VB4?
IS THERE A CONTROL OR OBJECT YOU HAVE TO USE ?

THANX




Mon, 08 May 2000 03:00:00 GMT  
 RIGHT CLICK MENU???

Create a new top level Menu e.g.

        mnuRight
        .....mnuRightOpen
        .....mnuProperties

etc

then put the following code in the _Mouseup code section of the controls in
question
example on ListView

    If Button = vbRightButton Then
        ' Display the context menu on right mouse click.
        PopupMenu mnuRight
    End If

After testing make the top option the menu Not Visible

Shane.



Quote:
> HI CAN YOU TELL ME  HOW YOU GET THE RIGHT CLICK MENU IN VB4?
> IS THERE A CONTROL OR OBJECT YOU HAVE TO USE ?

> THANX





Mon, 08 May 2000 03:00:00 GMT  
 RIGHT CLICK MENU???

Create a menu as normal, but make the top level invisible. Then call
PopUpMenu <menuname>

See  PopUpMenu in the help section.

Later,

Mitch


Quote:
>HI CAN YOU TELL ME  HOW YOU GET THE RIGHT CLICK MENU IN VB4?
>IS THERE A CONTROL OR OBJECT YOU HAVE TO USE ?

>THANX





Mon, 08 May 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Howto add a menu to right-click menu for an item

2. Right click menu (context menu?)

3. Editing right-click menu in query container

4. Inbox right click menu item

5. Accessing right click menus - outlook's object model

6. Add macro to right click menu and get selected item in contacts

7. Right Click menus in Excel

8. accessing right click menus

9. Manipulate Right-Click Menu in OL2000

10. Customizing Right Click Menu

11. right click menu

12. Modifying existing right-click menus on MailItem

 

 
Powered by phpBB® Forum Software