adBrite

Your Ad Here

music

BidVertiser

Thursday, February 3, 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

clicksor

Go Daddy Girl Ella Koon- $7.49 .COM Domains
CompUSA