label focus control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I have a label such as :
label1->text= “&methodâ€
and I have a textbox
I want that the textbox receives the focus when the user press alt+m
In borland C++ builder I did
label1->FocusControl=textbox1;
But I don’t know what shoul I do in Microsoft Visual C++
Please, help me
 
tlemcenvisit said:
Hello
I have a label such as :
label1->text= “&methodâ€
and I have a textbox
I want that the textbox receives the focus when the user press alt+m
In borland C++ builder I did
label1->FocusControl=textbox1;
But I don’t know what shoul I do in Microsoft Visual C++
Please, help me

Make sure TabIndex of the TextBox is one more than TabIndex of the label
 
Back
Top