Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox.SelStart
Message
De
04/01/2000 10:31:27
 
 
À
04/01/2000 10:27:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00312429
Message ID:
00312432
Vues:
25
>Hi All:
>
>In a Form, I have a TextBox. In the 90% of the times. The user only must to change the 2 last digits of the TextBox. For give comfort, I type the next code.
>
>Form.TextBox.gotfocus() { this.SelStart = 6}. Then the user don't have to press 6 times the RightArrow Key.
>
>This run o.k., but if you do this in a textbox that are inside a grid doesn't run.
>
>Why? In what method I have to type the code to run in Form.Grid.Column1.TextBox?
>

The right way to do this is to subclass the textbox class, add the code to the GotFocus method of the subclass, and then programmatically add the subclassed textbox to the column. You can't write into the method code of the base class.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform