Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing focus
Message
 
À
19/06/2002 14:40:42
Ron Hodge
Sebrex Systems, Inc.
Dacula, Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00670247
Message ID:
00670274
Vues:
23
One idea is to bind to the ENTER event for the credit card textbox. In the method check for the payment type and either change the textbox to ReadOnly or set Enabled to false if the payment type is not credit card.

>I have a payment screen and when the pmt type is not credit card, I want to prevent entry to the credit card textbox. How can I prevent the credit card textbox from receiving the focus at the time the user is entering the credit card field? I can't assume they'll only access it by tabbing there from the pmt type window, so I need to handle it when they're trying to enter the field. Pretty much like the FoxPro WHEN clause does. Is there somewhere I can return False to prevent the control taking focus?
>
>I don't want to use the enabled property for this because that would require fiddling with it every time the record changed.
>
>Thanks.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform