[ms vc++ .net 2005] questions about textbox
Posted on 2007-07-31
I've been searching in msdn library, but couldn't figure out.
1. Does anyone know how to set the maximum lengh of text in a textbox?
2. how can I highlight the text in a textbox? My situation is when a user enters invalid input, it pops up a warning diolog with OK button on it. When a user click on OK button, it goes back to the main window and select the invalid text. Neither below code lines didn't work.
3. I have these two textbox. When a user pushes TAB key on keyboard, I want the cursor to move from the first text box to the second text box. Does anyone know how to do that? I've found below code line, but don't know exactly how I should do..
textBox->AcceptsTab = true;
Any advise will help. Thank you :)