Results 1 to 3 of 3

Thread: disable - default popup for entire form

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Location
    Hyderabad
    Posts
    46

    Angry disable - default popup for entire form

    Hai,

    I have a problem with me . In a form I want to remove (disable) the right click popup menu .

    i.e. I have a form with no. of text boxes, combo boxes, buttons, option buttons, and a MSFlexgrid Control. I want to disable the default popup menu . I want to apply my own popup menu for some controls, and for rest of controls i dont' want to enable default popup menu also from right click .

    Thanx in advance.
    Last edited by satyarao; Apr 15th, 2003 at 02:46 AM.
    satyarao

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316
    Use the right click method of each object
    Slan

  3. #3
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316
    here you are

    Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbLeftButton Then
    MsgBox ("Left Button")
    Else
    MsgBox ("Right Button") ' vbrightbutton
    End If
    End Sub


    What you could do is get them all to call the same function and pass the button......

    Hope this helps.....

    john
    Slan

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