right-click menu

how do you pop a menu upon right-clicking, let's say, a textbox?
Who is Participating?
Ryan ChongConnect With a Mentor Commented:
Use the PopupMenu function in VB:

Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 2 Then PopupMenu mymenu
End Sub

* Please do to award me a A if accept my comment as the answer.
killer5Author Commented:
i was about to delete this question coz i remembered how to do it! anyway, thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.