Click here to Skip to main content
15,884,810 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
Plz suggest me a way to set focus to a control inside tabcontainer.
Thanks
Posted
Comments
Rahul K Singh 23-Jan-13 5:59am    
On Win form or web or WPF.... Where????
Deepak Manuja 23-Jan-13 6:17am    
on web

VB
'In General
Object.Focus()

Set Focus to that Object, No matter what's the Parent Control...
 
Share this answer
 
VB
For Each ctrl As Control In Tab1.Controls
    If ctrl.Name = "MyControl" Then
        ctrl.Focus()
    End If
Next
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900