Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBase II vs. .Net?
Message
From
19/11/2006 20:18:23
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
 
To
18/11/2006 17:11:51
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01170875
Message ID:
01171085
Views:
19
Bonnie,

Thanks for this great start! (It does depend on overriding some custom event handlers in your TextBox subclass, but I can cope with that as soon as I study up some more on binding. I've been using Mere Mortals and haven't had to worry much about that yet.) One thing it has that the other solutions I've looked at lack (including the NumericUpDown control) is that it won't allow entry of two decimal points or two minus signs. (Duh!) The only thing it needs is checking for the number of digits entered after the decimal.

I am hoping that the 3.0 framework has some features that makes things like this a bit easier "out of the box"! While I like the flexibility the framework gives us, I still believe the it should give a novice this kind of functionality without hours (days?) of programming.

...Jim

>I haven't used hardly any of the new features of 2.0 yet, so I decided to look at the new MaskedTextBox. Wow ... what a useless piece of garbage ... at least for decimal data, I didn't try using it for anything else just yet. There may be tricks one has to know to get it working correctly, but I haven't researched it at all.
>
>We created our own NumericTextBox sub-class in our 1.1 app (we've ported the app to 2.0, but haven't taken advantage of any new features as of yet). Here's what we've got:
>
>This has been subclassed from our own TextBox subclass, but I think it has everything in it that does the numeric checking and our TextBox subclass is not needed. I don't know for sure though, so test this out just sub-classing from the .NET textbox and if it still doesn't do it correctly, let me know and I can post the code for our TextBox class.
>
<...Snip...>
Previous
Reply
Map
View

Click here to load this message in the networking platform