Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hello,
Plz suggest me a way to set focus to a control inside tabcontainer.
Thanks
Posted 23-Jan-13 0:34am
Comments
Rahul K Singh at 23-Jan-13 5:59am
   
On Win form or web or WPF.... Where????
Deepak Manuja at 23-Jan-13 6:17am
   
on web
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

'In General
Object.Focus()
Set Focus to that Object, No matter what's the Parent Control...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

For Each ctrl As Control In Tab1.Controls
    If ctrl.Name = "MyControl" Then
        ctrl.Focus()
    End If
Next
  Permalink  

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

  Print Answers RSS
0 BillWoodruff 260
1 Afzaal Ahmad Zeeshan 252
2 OriginalGriff 251
3 Mathew Soji 234
4 Maciej Los 230
0 OriginalGriff 6,419
1 Sergey Alexandrovich Kryukov 6,008
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,070


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100