把label的文本值 拖到TextBox
来源:互联网 发布:淘宝网美容泛石刮沙板 编辑:程序博客网 时间:2024/04/30 18:41
TextBox的 textBox1.AllowDrop = true;
private void label2_MouseDown(object sender, MouseEventArgs e)
{
Label lab = (Label)sender;
lab.DoDragDrop(lab.Text, DragDropEffects.Copy);
}
private void textBox1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(String)))
{
e.Effect = DragDropEffects.Copy;
}
else
{
e.Effect = DragDropEffects.None;
}
}
private void textBox1_DragDrop(object sender, DragEventArgs e)
{
((TextBox)sender).Text = e.Data.GetData("System.String", true).ToString();
}
- 把label的文本值 拖到TextBox
- 在asp.net中 把一个文本文档的中的数据一行一行添加到textbox中
- C# winform 用textbox显示文本 如何把光标定位到指定的位置
- 把文本框的值转移到文本域案例
- 文本服务器控件(标签Label控件和文本框(TextBox)控件)
- textbox把背景颜色设置成空让它像LABEL一样
- 把Textbox中写入的内容格式化(比如空格、分段)传到数据库然后用label正常显示出来
- Label 的富文本 与 自定义Label
- 计算Label的文本尺寸
- label的富文本设置
- 如何把一个页面中textbox的值传给另一个页面中的textbox
- 把textbox中的文本按照/r/n拆分成string[]
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- UNICODE编码细节
- POSIX下的串口编程
- 如何提高程序的可交互性
- 多线程调试信息的打印
- Hibernate学习小结(二)――Hibernate正向工程hbm2ddl
- 把label的文本值 拖到TextBox
- Java 关键字总结 (1)
- 锚点的用法
- Struts2.1笔记(三):Struts2基础
- flex3取html传过来的参数
- js控制table
- Richedit常见问题
- 网络营销高人的8大生意经:病毒性营销
- Java 网络编程---I/O部分