Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form navigation and data entry
Message
De
21/12/2009 18:47:40
 
 
À
21/12/2009 12:52:11
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01440046
Message ID:
01440092
Vues:
50
Bill,

As Viv noted, you'll need to handle the various key events (KeyPress or KeyDown) to alter the behavior. What you should be doing from the very start is sub-classing your controls into your own base classes so that you can easily alter the behavior and properties of your controls in one place ... we all did this with VFP (or should have done it anyway) and the same holds true for .NET.

I don't know if you've seen the many times I've posted this mantra here on the UT, but I've finally started consolidating some of my posts from here and elsewhere on my blog. Take a look at http://geek-goddess-bonnie.blogspot.com/2009/10/why-and-how-to-sub-class-base-classes.html if you haven't already seen this advice.

~~Bonnie



>I'm having VFP withdrawal symptom while programming Winform Data Entry forms.
>Here are a few questions:
>-Is there some convenient way that I'm missing to have the focus proceed to the next tab index when the Enter key is hit, as it does in VFP? I can see how program it by trapping the keydown event, but is there a simpler way?
>-Is there some way to limit the number of characters keyed, as we can do with an input mask?
>-Is there some way to make the characters show as uppercase, as we can do with an input mask? I can make it upper OK, but I'd like the user to see it transformed to upper the way we can with VFP. Again, I can probably do it in the keydown event, but is there a simpler way?
>-Is there some way to handle decimal input the way VFP does? I tried the masked textbox and it seems kludgey to me.
>
>I checked around the C# forums but most of them think that the way C# does it out of the box is great.
>
>Any ideas greatly appreciated.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform