Click here to Skip to main content
13,140,613 members (50,116 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 23-Jan-13 5:59am
   
On Win form or web or WPF.... Where????
Deepak Manuja 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
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
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