Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox with numeric value
Message
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01654646
Message ID:
01654649
Views:
59
>>>Hello all.
>>>Is there a way to enter only digits in a texbox like 999,999.99 in foxpro?
>>>I've been seeing videos in youtube but none of them explain how to use decimals.
>>
>>Where do you have your textbox? What type of application you're building?
>
>In a winform. Is a desktop application that connects to sql server.

Simple search gives this link

https://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

and

https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-set-the-input-mask

I hope it will be enough to get you started. I don't work with Windows Forms myself.

And see also

https://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.mask(v=vs.110).aspx
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform