Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to traverse controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00980286
Message ID:
00980443
Vues:
35
Hi Gerard,

Is this what you were looking for :
(http://groups.google.ca/groups?q=.net+text+boxes+enter+key&hl=en&lr=&selm=8bnrug%2424f%241%40nnrp1.deja.com&rnum=5)
========================================
To move from one box to another with the "Enter" key, you need to re-
map the enter key to send a tab key signal. Put the following code in
the keypress event:

If KeyAscii = 13 Then
SendKeys "{tab}"
KeyAscii = 0
End If

To highlight the text when you get there, put the following code in the
GotFocus event for each text box (substituting the name of each box for
txt1 in this example):

highlight = TextWidth(txt1.Text)
txt1.SelStart = 0
txt1.SelLength = highlight


Note that you cannot shift the focus to a new text box until it is
visible.
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform