PDA

View Full Version : Solved: prevent textbox selection without disabling it



av8tordude
04-16-2011, 01:19 PM
I know I can prevent users from selecting a textbox by disabling the textbox, but the text in the textbox is grayed out. How can i prevent the user from selecting the textbox without disabling the textbox? locking it still displays the blinking cursor.

mikerickson
04-16-2011, 01:49 PM
Private Sub TextBox1_Enter()
TextBox2.SetFocus
End Sub

av8tordude
04-16-2011, 02:20 PM
:doh: That was easy...lol. And I thought the code would be out of rocket science book...lol Thank you Mike:beerchug: