资源说明:本文实例讲述了C#实现让ListBox适应最大Item宽度的方法。分享给大家供大家参考。具体实现方法如下:
private void button1_Click(object sender, EventArgs e)
{
for (int i = 1; i <= 16; i++)
{
listBox1.Items.Add(TTTTTTTTTTTTTTTTTTTTTTTTTTTTT + i.ToString());
}
}
private void button2_Click(object sender, EventArgs e)
{
SizeF size = listBox1
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。