This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18605|Reply: 3

[WinForm] C# WinForm, copy and paste text to the clipboard

[Copy link]
Posted on 7/2/2017 6:06:19 PM | | |
To operate the clip version, the ClipBoard class is mainly used.

This class is located in

System.Windows (WPF) or System.Windows.Forms (Winform).

Determine if the clipboard is empty








Previous:Baidu MIP data submission push tool
Next:【Summer】Tomato Garden Ghost Win7 Summer Special Edition v201707 [32-bit & 64-bit] Full driver board
 Landlord| Posted on 8/21/2017 3:19:26 PM |
private void textBox1_Click(object sender, EventArgs e)
        {
            Clipboard.SetText(textBox1.Text);
            MessageBox.Show("Copy successful!");
        }
Posted on 9/1/2017 1:12:38 PM |
Reply and see!
- This article is from the architect, the original address: https://www.itsvse.com/thread-3653-1-1.html
Posted on 9/1/2017 1:12:56 PM |
Reply and see!
- This article is from the architect, the original address: https://www.itsvse.com/thread-3653-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com