textbox and numbers

  • Thread starter Thread starter petit.primo
  • Start date Start date
P

petit.primo

hi!!
I make a software in c# with visual studio 2005 and
I would like to know if it's possible to restrict my textbox to put
only numbers inside?
thanks a lot for your answer
hope to hear from you soon ^^
 
Hi,

hi!!
I make a software in c# with visual studio 2005 and
I would like to know if it's possible to restrict my textbox to put
only numbers inside?
thanks a lot for your answer
hope to hear from you soon ^^


Look into the archives, there are several ways of doing this. the easiest is
to use KeyDown event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top