Multimobile Development: Building Applications for any Smartphone
How to focus TextBox control inside of TabControl?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.windowsforms.


Nikolay Unguzov
GOOD ANSWER
I have simple form with 1 panel. In first panel I have one TabControl. In
the TabControl I have one TextBox.

How to focus TextBox control inside of TabControl? Because this code isn't
work:

Panel1.Focus()

TabControl1.Focus()

TextBox1.Focus()

My idea is keyboard input to be focused on the TextBox when Form1 is
opened.

Nikolay Unguzov

Reply to this message...
Vote that this is a GOOD answer... (1 vote from another user already)
 
 
    
ClayB [Syncfusion]
GOOD ANSWER
Are you trying to do this from, say within Form.Load? If so, try code like

Me.ActiveControl = Me.TextBox1

=================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools

"Nikolay Unguzov" <Click here to reveal e-mail address> wrote in message
news:eSGvSvTvCHA.1624@TK2MSFTNGP10...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer... (3 votes from other users already)
 
 
    
Nikolay Unguzov
Thanks, GlayB!

"ClayB [Syncfusion]" <Click here to reveal e-mail address> wrote in message
news:#l1zmZVvCHA.2504@TK2MSFTNGP10...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
 
System.Web.UI.MobileControls.TextBox
System.Web.UI.WebControls.TextBox
System.Windows.Forms.Form
System.Windows.Forms.TabControl
System.Windows.Forms.TextBox




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734