message count down counter
-
hi all. is there a way to do a message count down counter? so that whenever a user types the maximum of 160 characters, the program will detect it and a message box will appear. thanks.
-
hi all. is there a way to do a message count down counter? so that whenever a user types the maximum of 160 characters, the program will detect it and a message box will appear. thanks.
If you are using a textbox say
txtName
then you can write an event handler for KeyPressed event. Like....private void txtUname_KeyPress(object sender, KeyPressEventArgs e) { if (txtUname.Text.Length == 160) { MessageBox.Show("Text5"); } }
Hopefully it will solve your problem.Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."
-
If you are using a textbox say
txtName
then you can write an event handler for KeyPressed event. Like....private void txtUname_KeyPress(object sender, KeyPressEventArgs e) { if (txtUname.Text.Length == 160) { MessageBox.Show("Text5"); } }
Hopefully it will solve your problem.Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."
thanks. :D