Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set focus
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How to set focus
Divers
Thread ID:
00975552
Message ID:
00975552
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform