AdBrite

Your Ad Here

Wednesday, February 2, 2011

To enable ctrl+c ctrl+v ctrl+a ctrl+x on in textbox

        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

BidVertiser

pocket cents

PocketCents Local Online Advertising