private void DescriptionTextBox_KeyUp(object sender, KeyEventArgs e)
{
// To enable ctrl+c ctrl+v ctrl+a ctrl+x on in textbox
if (e.Control && e.KeyCode == Keys.C)
{
DescriptionTextBox.Copy();
}
if (e.Control && e.KeyCode == Keys.V)
{
DescriptionTextBox.Paste();
}
if (e.Control && e.KeyCode == Keys.A)
{
DescriptionTextBox.SelectAll();
}
if (e.Control && e.KeyCode == Keys.X)
{
DescriptionTextBox.Cut();
}
}
No comments:
Post a Comment