打开很多个窗口,里面都有一些文本框。怎样获取焦点的对象。
然后在这个文本框上粘贴上剪贴板上的数据?
然后在这个文本框上粘贴上剪贴板上的数据?
解决方案 »
- C#连接VF
- 这样使用事务是否合理?
- 关于dataGridView的数据更新问题
- 请帮忙转换下代码 c++ 到 c# 或 vb.net
- (100分求教)关于检索窗体的问题
- 帮我解释下,谢谢了
- 客户端应用程序的问题 兄弟们帮忙看看 给点思路 (100分 呵呵)
- 请问模拟键盘输出的时候该怎么处理特殊键?
- 求助:我用mshtml中的dhtmledit控件来编写网页编辑程序,但是无论是浏览或是编辑状态,jpg图片总是不能显示,请高手指教!
- 有没有C#版本的Guava Cache组件
- QQ剩余升级时间为 0,不知道咋回事了????
- 怎么在mdi窗口用toolbar?还有怎么样像myie那样把子窗口放在一个标签上呢?
if(iData.GetDataPresent(DataFormats.Text)) //判断是否是Text
{
string str = (string)iData.GetData(DataFormats.Text);//取数据
}
{
System.Windows.Forms.IDataObject iData = System.Windows.Forms.Clipboard.GetDataObject();
if(iData.GetDataPresent(System.Windows.Forms.DataFormats.Text))
{
string strValue=(string)iData.GetData(System.Windows.Forms.DataFormats.Text);
this.ActiveControl.Text=strValue;
}
}