zoukankan
html css js c++ java
剪贴板编程
粘贴文字
string
str
=
"
我写的东东
"
;
Clipboard.SetDataObject(str);
IDataObject iData
=
System.Windows.Forms.Clipboard.GetDataObject();
if
(iData.GetDataPresent(DataFormats.Text))
{
textBox1.Text
=
(
string
)iData.GetData(DataFormats.Text);
}
粘贴图像
private
void
button5_Click(
object
sender, System.EventArgs e)
{
Clipboard.SetDataObject(pictureBox1.Image);
}
private
void
button6_Click(
object
sender, System.EventArgs e)
{
IDataObject iData
=
System.Windows.Forms.Clipboard.GetDataObject();
pictureBox2.Image
=
(Bitmap)iData.GetData(DataFormats.Bitmap);
}
查看全文
相关阅读:
软件架构感悟.
浏览器缓存技术
as到底干嘛了???
关于WebForm开发问题(给新手的建议)
疑难问题ASP.NET
破解hash算法.高手请进,求解.
(MVC和JVPL模式)Moon.Web架构谈
Moon.NET框架架构及介绍
调用API设置安卓手机的Access Point
gtShell 为你常用的目录建立标签并快速跳转
原文地址:https://www.cnblogs.com/lidune/p/546687.html
最新文章
SAP 常用报表汇总
SAP 创建 Web Services
SAP 找需要的BADI
Compiere的汉化
WEB Dynpro(一)
SAP XI 开发步骤
SAP的标准对话框函数(转)
SAP 用户监控
Using ASP.NET and jQuery to Pass Multiple Values from a GridView to Another Page
Updater Application Block自动更新实施方案[源代码]
热门文章
Pass Multiple Values from a GridView to Another Page using ASP.NET
Updater application block 2.1使用和扩展
Paging of Large Resultsets in ASP.NET
简体繁体内码转换API
Modal popup dialog window with multiple parameters
BizTalk对Outbound/Inbound message字符编码的转换
收缩SQL SERVER日志文件
框架设计指导方针[翻译]
UML类图6种关系的总结
Moon.Net 2.0架构及功能说明(欢迎加入Moon.NET团队)
Copyright © 2011-2022 走看看