c# - Disable Enter Key in Textboxes -


i developing chatting system. , have button send text in text box chat log. how going stop user press enter key , disable enter key. know there many posts out there this, solutions haven't worked me.

i think not need stop user pressing enter instead send chat other person on press of enter.

also if have other shortcuts allowed can have @ c#: how make pressing enter in text box trigger button, yet still allow shortcuts such "ctrl+a" through?

using same can block

private void textboxtosubmit_keydown(object sender, keyeventargs e) {     if (e.keycode == keys.enter)     {         e.suppresskeypress=true;     } } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -