Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use Tabcontrol set the focus?
Message
From
12/01/2011 13:46:11
 
 
To
11/01/2011 13:18:02
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Miscellaneous
Thread ID:
01495582
Message ID:
01495936
Views:
36
>Dang! You beat me to it by 10 minutes.

Probably because I started twenty minutes before (g).
Wish there was a bit more WPF (or even Silverlight) activity around here.......

I was just about to reply almost the same thing (textBox1.Focus() instead of setting it as the ActiveControl ... either way works). The key, obviously, was setting the TabControl.SelectedTab property.
>
>~~Bonnie
>
>
>
>>> HI ALL,
>>> i have a tabcontrol called TabControl1 , it include the 2 page ,called TabPage1, TabPage2...
>>>In TabPage1, i have a button . Form load after,will dislay the TabPage1 first....
>>>In this time , i want to onclick the button .... and it will auto go to TabPage2 and select the textbox...
>>>But i can't it , how can i do? thx
>>>My code
>>
>>>TabPage2.Focus()
>>>textbox1.Focus()
>>
Try:
TabControl1.SelectedTab = TabPage2
>>ActiveControl = textbox1
Previous
Reply
Map
View

Click here to load this message in the networking platform