• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Right-Click Context Menu On Userform Textbox

kadrleyn

Member
rightclick_on_textboxes.gif

In template ,popup menu on textbox control is created using class module.The menu is activated using the MouseUp event of the textbox :
Code:
Private WithEvents TControl As MSForms.TextBox
Private Sub TControl_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
   If Button = 2 And Shift = 0 Then
     Run "RightClickMenuTextBox"
   End If
End Sub

These operations can be performed with the right click menu :
Copy
Paste
Cut
Clear
Telephone

Source

 
Last edited by a moderator:
Back
Top