How do I highlight the contents of a textbox when gets focus?
I think you can do this: vb.net Code: If TextBox1.Focused = True Then TextBox1.SelectAll()End If Hope it helps
If TextBox1.Focused = True Then TextBox1.SelectAll()End If
"In our profession, precision and perfection are not a dispensable luxury, but a simple necessity." Niklaus E. Wirth Rate any post that helped you, it's a good way of saying thanks Please specify your Visual Studio Version! Why rating is useful My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary
A little simpler than VB6. Thankyou.
If I have 10 textboxes, can I handle them under the same event? How do I group them together?
Forum Rules