【C#学习笔记】从粘贴板复制文本
2024-10-15 23:34:07
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication5 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { IDataObject idata=Clipboard.GetDataObject(); if (idata.GetDataPresent(DataFormats.Text)) textBox1.Text = (string)idata.GetData(DataFormats.Text); } } }
最新文章
- 解决Android工程里的xml文件自动提示问题
- Nim编码风格
- zookeeper源码分析二FASTLEADER选举算法
- paper 96:计算机视觉-机器学习近年部分综述
- 制作苹果推送通知APNS服务器证书文件
- MVC权限管理系统dwpro项目权限按钮无故自动消失问题
- VMware Workstation 12 Pro虚拟机下载(含序列号)
- BZOJ1106: [POI2007]立方体大作战tet
- (转) 学习C++ ->; 类(Classes)的定义与实现
- php方法综述除去换行符(PHP_EOL使用变量)
- 1121: [POI2008]激光发射器SZK
- 你知道现在有一种新的OCR技术叫“移动端车牌识别”吗?
- 【RequireJS】requireJS的基础知识
- SQL数据库基础知识-巩固篇<;一>;
- WebDriver API--元素定位
- Python之猴子补丁
- Python自动化开发 - 流程控制
- python中的三次握手以及四次挥手
- OpenCV——图像的深度与通道数讲解
- oracle rowid 研究