d@rk_blu3 Posted March 29, 2007 Share Posted March 29, 2007 I nid help.....I have a txtbox that can only accept numbers and the decimal point.The question is what is the keycod in the keybd and in the keynumpad of ".". Pls help..... Link to comment Share on other sites More sharing options...
aspnetguy Posted March 29, 2007 Share Posted March 29, 2007 if(Event.KeyCode == Keys.Decimal || Event.KeyCode == Keys.OemPeriod){} Link to comment Share on other sites More sharing options...
jesh Posted March 29, 2007 Share Posted March 29, 2007 if(Event.KeyCode == Keys.Decimal || Event.KeyCode == Keys.OemPeriod){}Is this only for Windows Forms? Or does this work on Web Forms as well? Link to comment Share on other sites More sharing options...
aspnetguy Posted March 29, 2007 Share Posted March 29, 2007 Just WinForms. Keypresses are client side so JavaScript is the only option for web. Link to comment Share on other sites More sharing options...
jesh Posted March 29, 2007 Share Posted March 29, 2007 Just WinForms. Keypresses are client side so JavaScript is the only option for web.hah. I knew that, I must have not been thinking. Thanks! Link to comment Share on other sites More sharing options...
aspnetguy Posted March 30, 2007 Share Posted March 30, 2007 hah. I knew that, I must have not been thinking. Thanks!That was what I was thinking when I responded. I was thinking I hope he isn't offended by my response because I know he knows that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now