Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set focus
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to set focus
Miscellaneous
Thread ID:
00975552
Message ID:
00975552
Views:
43
Hi.
I have a Form which has on it:
TabControl1
btnAdd
TabPage1
...grdGrid1
TabPage2
...txtName

In My btnAdd, I want to set focus to the txtName control on Page two.
Intellisenese allows (on the AddButon Click): this.txtName.Focus(); but it does not set focus

In VFP , I would do someting like:
Thisform.TabControl1.TabPag2.txtName.SetFocus()

Anybody know correct syntax for this in c#

Thanks in advance.

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform