c# - select all text in a textarea with CTRL+A -


in winforms application, possible select text using ctrl+a?

just write keydown event handler text box:

    private void textbox1_keydown(object sender, keyeventargs e) {         if (e.keydata == (keys.control | keys.a)) {             textbox1.selectall();             e.handled = e.suppresskeypress = true;         }     } 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -