问题描述
|
有没有理由为什么当我添加项目但使它们不可见时,使用ѭ0时,列表视图会展开(生成滚动条),但是当我将其切换到ѭ1时,它就可以正常工作吗?
并不是说我认为这确实很重要,但是这是我用来向列表视图添加项目的代码:
ListViewItem item1 = new ListViewItem(file[1]);
listView1.Items.Add(item1);
和自动生成的设计器代码:
//
// listView1
//
this.listView1.CheckBoxes = true;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.Path});
this.listView1.Location = new System.Drawing.Point(12,44);
this.listView1.Name = \"listView1\";
this.listView1.Size = new System.Drawing.Size(457,354);
this.listView1.TabIndex = 7;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
文件是一个字符串数组,在第一个元素中包含大约50个奇数字符(使用调试器检查)。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)