有两个listbox
在第一个listbox 中选中 ,在第二个listbox 中显示,
把第二个listbox 中所有以显示的内容用一个lbl显示出来。
C# VS2005如何实现?
在第一个listbox 中选中 ,在第二个listbox 中显示,
把第二个listbox 中所有以显示的内容用一个lbl显示出来。
C# VS2005如何实现?
解决方案 »
- 请问怎样在窗体中把汉字自动转换成拼音缩写呢?
- 使用Visual C#2005 实现具有权限控制的通用数据维护表单
- 郁闷~透明图片放置在控件上 无法透明 100分
- 已经找到了可以遍历当前计算机上所有应用程序窗口的办法,可是
- C# winform treeView 的节点是不是一个数组
- 高手帮帮忙吧
- 协议中无法理解的数据类型
- 使用SendMessage对第三方控件devexpress赋值
- 求两个时间的差值,返回单位为 “秒”怎么弄?
- 调试程序时Exception message:"对象必须实现 IConvertible",是什么意思?
- 数据集xsd里的dataset 绑定到textbox
- 绑定表达式的问题
{
lbl.Text+=li.Text;
}
{
lbl.Text+=li.Text;
}报错了,找不到类型或命名空间名称ListItem
怎么回事?
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;namespace WindowsApplication1
{
public partial class Form1 : Form
{
private int width = 480; //窗体的最大宽度
public Form1()
{
InitializeComponent();
} private void Form1_Load(object sender, EventArgs e)
{
this.Width = 10;
this.timer1.Enabled = true;
this.timer1.Start();
} private void timer1_Tick(object sender, EventArgs e)
{
this.Width += 10;
if (this.Width >= width)
{
this.timer1.Enabled = false;
}
} private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
this.listBox2.Items.Add(this.listBox1.SelectedItem.ToString());
this.label1.Text += this.listBox1.SelectedItem.ToString();
}
}
}