I am trying to make a textbox that accepts only numbers and comma but no luck.
I did a search on the forum and found some snippets of code but still couldn't get it working.
I can't show you any of my code so far, because I don't have any yet, this textbox is my starting point.
One more question if I may... I've used the code farooqaaa provided. Now that the textbox accepts only numbers I'm capturing the input using
private void textBox1_TextChanged(object sender, EventArgs a)
a = Convert.ToDouble(textBox1.Text);
and then doing some maths by clicking on another button. The thing is that I would like to use negative numbers , but if I introduce minus (-) before the number the program crashes.
I found a way around by adding a checkbox that does
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...