TextBox全選按Ctrl+A都沒反應....
把下面這串Function套到textbox事件的keydown即可!!
private void TextBox_SelectAll(object sender, KeyEventArgs e)
{
if (e.Modifiers == Keys.Control && e.KeyCode == Keys.A)
{
(sender as TextBox).SelectAll();
}
}
沒有留言:
張貼留言