Hi,
I want to disable mouse right on textbox in c#.net window applciation.
Any ides or suggestions are welcome
Disable mouse right click on textbox
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Feb 3, 2011, 1:01 AM EST
Private Sub TextBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown If e.Button = Windows.Forms.MouseButtons.Right Then Exit Sub 'Return 'MessageBox.Show("Right Click") End If End Sub