How to enable a disabled textbox from mouse click vb.net
问题 Simple how to enable a Textbox which is disabled by clicking on it? how is this done? my code doesn't work Private Sub Textbox1_MouseClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1.MouseClick Textbox1.Enabled = True End Sub Can anyone help me out. Do I have to resort to tracking the mouse clicks and X,Y positions of textbox with timers etc.. no events are fired from clicking it? 回答1: You can use IMessageFilter to trap WM_LBUTTONDOWN messages and then check