C# implements the method of copying content of windows form to the clipboard

高洛峰
Release: 2017-01-19 13:26:14
Original
1277 people have browsed it

The example in this article describes the C# method of copying content from windows form to the clipboard. Share it with everyone for your reference. The specific implementation method is as follows:

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
public class MainClass
{
  public static void Main(string[] args)
  {
    Clipboard.SetDataObject("data");
  }
}
Copy after login

I hope this article will be helpful to everyone’s C# programming.

For more C# methods to implement windows form copy content to the clipboard and related articles, please pay attention to the PHP Chinese website!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!