Results 1 to 3 of 3

Thread: Right-click On TextBox.

  1. #1

    Thread Starter
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Hi,

    When i Right Click on a TextBox I like To do Someting but somthing else came up (Cut, Paste, Delete...) how can i Delete this Menu???
    Regards

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Wink right click disable

    'you can't delete it but you can bypass it
    'and replace it with your own
    'ie..hook it then unhook it when your app is done

    'disable the textbox poput menu
    'put this code in the mousedown event of the textbox
    'replace the text popup with on of yours
    '

    Private Sub mnuFileMenu_Click()
    Text1.Enabled = True
    End Sub

    Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 2 Then
    Text1.Enabled = False
    PopupMenu mnuFileMenu 'replacing the text popup with my
    Text1.Enabled = True
    End If
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Addicted Member Tiovital's Avatar
    Join Date
    Apr 2000
    Posts
    249
    Hi,

    HeSaidJoe - Thanks

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