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 22-Jan-13 23:34pm
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 OriginalGriff 7,280
1 Sergey Alexandrovich Kryukov 6,059
2 Maciej Los 3,579
3 Peter Leow 3,383
4 CHill60 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140721.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