C#, mouseClickEvent doesn't respond to right mouse click?

The above answer is correct... you need to check it on the MouseDown event.

The above answer is correct... you need to check it on the MouseDown event. Private void TextBox_MouseDown(object sender, System.Windows.Forms. MouseEventArgs e) { if (e.

Button == MouseButtons. Right) wasRightButtonClicked = true; } **I tried to up it but I don't have enough points yet.

The Click and MouseClick events are only generated by a left-click. If you want to detect right-clicks then you have to implement the MouseDown or MouseUp event.

That's not right cause on the form it works. – Alex Kapustian Jun 24 '10 at 10:10 What works? Post code.

– Hans Passant Jun 24 '10 at 10:31 nvm I took the onmousedown event – Alex Kapustian Jun 24 '10 at 11:47 Yes. Sounds resolved to me, please close your thread by marking it answered. – Hans Passant Jun 24 '10 at 12:00.

You can check this topic, might be useful for recognizing the right click: A previous question on the matter.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions