Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# paste from clipboard

// Paste text from the clipboard.
private void btnPaste_Click(object sender, EventArgs e)
{
    txtPaste.Text = Clipboard.GetText();
}

// Copy text to the clipboard.
private void btnCopy_Click(object sender, EventArgs e)
{
    Clipboard.SetText(txtCopy.Text);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #paste #clipboard
ADD COMMENT
Topic
Name
1+3 =