Link to home
Start Free TrialLog in
Avatar of shinymoon
shinymoon

asked on

[ms vc++ .net 2005] questions about textbox

Hi,

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.
textBox->Select(0, textBox->Text->Length);
textBox->SelectAll();

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 :)
ASKER CERTIFIED SOLUTION
Avatar of drichards
drichards

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shinymoon
shinymoon

ASKER

Thank you :)