我用剪贴板可以实现加载图像,可是Gif的图像加载后不能动,请帮忙解决。
解决方案 »
- 寻找研究过SharpDevelop项目的朋友,想请教一个问题, 代码不太能看懂.
- .net 如何判断某一个IP是否在 一个IP段里边
- c# api hook 全盘获取键盘的值
- 如何在关闭form窗体是跳出一个是否关闭的提示框?
- C# 如何BINDING绑定radiobutton控件 3个radiobutton在一个groupbox里
- 关于远程数据库连接!~~~~
- 怎么设置一个项目运行时最初打开的窗口?
- 关于datagrid的 用法
- c# arc gis engine 柱状图问题
- CrystalReport 怎么总是报错; The report has no tables.
- DataRow findrow = ds.Tables["供方进料不合格统计表"].NewRow(); 这种方法为什么不能使用两次
- 电子书(exe 格式的)如何转成flash格式的文件
...
string lstrFile = fileDialog.FileName;
Bitmap myBitmap = new Bitmap(lstrFile);
// Copy the bitmap to the clipboard.
Clipboard.SetDataObject(myBitmap);
// Get the format for the object type.
DataFormats.Format myFormat = DataFormats.GetFormat (DataFormats.Bitmap);
// After verifying that the data can be pasted, paste
if(NoteBox.CanPaste(myFormat)) {
NoteBox.Paste(myFormat);
}
else {
MessageBox.Show("The data format that you attempted site" +
" is not supportedby this control.");
}
...
}
这里用ico图标的路径的时候,第一次没问题,接下来每次都出异常:参数无效。
这是为什么
如果不是的话,(运行程序后)你把一个动态的图片复制到剪贴板,然后在RichTextBox中粘贴,看可以动的啊,我试过的。