双击listbox中的某一项后能够将此项在textbox中打开。win form中,c#实现。向大家请教。
解决方案 »
- 安装程序在安装此程序包时遇到了错误 可能表明程序包有错 错误代码是2869
- The specified string is not in the form required for an e-mail address.
- c# 清空ie cookies 问题
- C#2005连接数据库出错:"conn.ServerVersion"引发的“System.InvalidOperationException”类型的异常
- 最基本的数据库连接问题
- 求助!我该怎么做,多进程?多线程?
- 怎样通过一个webForm打开另一个webForm
- 租房被骗,郁闷..... 散分
- 如何给一DateTimePicker赋指定的时间?
- 引用子窗口的时候说缺少引用????????????
- c/s c# 实现 多个excel 合并为 一个excel 。
- 如何建立一个显示缓存?
{
textBox1.Text = listBox1.SelectedItem.ToString();
}
textbox1.text=ListBOx1.text;}
{
this.textBox1.Text = this.listBox1.Items[this.listBox1.IndexFromPoint(e.Location)].ToString();
}
private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
int t = this.listBox1.IndexFromPoint(e.Location);
if (t != -1)
this.textBox1.Text = this.listBox1.Items[t].ToString();
else
this.textBox1.Text = "";
}