How to put fixed values into textbox?
I created user control in witch a user can enter varius types of data.
If it's decimal like 0.00,00 i would like for dot and comma to stay in textbox and numbers can be erased.
Is there a way to do it?
How to put fixed values into textbox?
I created user control in witch a user can enter varius types of data.
If it's decimal like 0.00,00 i would like for dot and comma to stay in textbox and numbers can be erased.
Is there a way to do it?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anna Hawks102 reputationPosted Jun 24, 2008, 11:16 AM EDT
Sunny Chen162 reputationPosted Jul 2, 2008, 1:29 AM EDT
If you are on the web form, I suggest you use AJAX instead. Please check www.asp.net for the latest version and sample code of AJAX.NET.
If you are on the win form. I think you can hook the key events to filter out what you are concerning about.
Good luck!
Cory Borrow8 reputationPosted Jul 2, 2008, 3:52 AM EDT
http://www.codeproject.com/KB/cs/IPAddressTextbox.aspx
http://www.codeproject.com/KB/miscctrl/IPTextBox.aspx
http://www.codeproject.com/KB/edit/IPAddressTextBox.aspx