Insert '.' when press '#' in textbox using C#This topic has 0 replies, 2 voices, and was last updated 11 years, 5 months ago by Hirendra Sisodiya.Viewing 2 posts - 1 through 2 (of 2 total)AuthorPosts December 19, 2011 at 12:46 pm #3227 John CoderMemberI have a textbox control, I want to insert ‘.’ in stead of ‘#’ means when i press ‘#’ from keyboard then textbox insert ‘.’ character.please helpthanks December 19, 2011 at 1:02 pm #3228 Hirendra SisodiyaKeymastertry this code: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)35) { e.KeyChar = (char)46; } } thanks AuthorPosts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.Log In Username: Password: Keep me signed inLog In