//这是lvgzdx竖向显示
this.lvgzdx.Alignment = System.Windows.Forms.ListViewAlignment.Top;
this.lvgzdx.Location = new System.Drawing.Point(20, 50);
this.lvgzdx.Name = "lvgzdx";
this.lvgzdx.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.lvgzdx.Size = new System.Drawing.Size(255, 418);
this.lvgzdx.SmallImageList = this.ilgzdx;
this.lvgzdx.TabIndex = 1;
this.lvgzdx.View = System.Windows.Forms.View.Tile;
ListViewItem lvi = new ListViewItem();
lvi.ImageIndex = i;
lvi.Text = keylist[i];
lvi.Tag = intlist[i];
lvi.ToolTipText = keylist[i];
this.lvgzdx.Items.Add(lvi);
这个怎么把listview横向滚动条给去掉呢 现在是横向,竖向都有滚动条。求解
Scrollable属性设为false
设置了为false 会出现另一个问题 就是如果我行多了 后面的就不显示了 我现在需要的就是把这个行宽度给限制 然后就不出现横向的滚动条。.common.SendMessage(this.lvUser.Handle, LVM_SETICONSPACING, 0, 0x10000 * (170) + (140)); 解决