A bug in RichTextBox control?

L

lottoman

Hello All,

The RichTextBox is not responding to click events. I created a new
project dropped a RichTextBox.

Private Sub RichTextBox1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RichTextBox1.Click
MessageBox.Show("Responded")
End Sub

after clicking nothing happens. tried the same code in the TextChanged
event. works fine.

Any known issues?
 
H

Herfried K. Wagner [MVP]

lottoman said:
The RichTextBox is not responding to click events. I created a new
project dropped a RichTextBox.

Private Sub RichTextBox1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RichTextBox1.Click
MessageBox.Show("Responded")
End Sub

after clicking nothing happens. tried the same code in the TextChanged
event. works fine.

ACK, same behavior here. You can use the 'MouseUp' event instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top