110,568
社区成员
发帖
与我相关
我的任务
分享
private const int SB_HORZ = 0;
private const int SB_VERT = 1;
private const int SB_CTL = 2;
private const int SB_BOTH = 3;
[DllImport("user32.dll")]
public static extern int ShowScrollBar(int hwnd, int wBar, int bShow);
private void Form2_Load(object sender, System.EventArgs e)
{
this.listView2.Scrollable = false;
ShowScrollBar((int)this.listView2.Handle, SB_HORZ, 1);
}