风格设置为flat后还是有边框的

解决方案 »

  1.   

    笨方法:
    把listbox放到一个picturebox里面
    仔细设置listbox的top、left属性和picturebox的width、height属性
    可以把边框藏起来
      

  2.   

    Use WinAPI to Control it.
      

  3.   

    工程  部件  选择microsoft forms 2.0ListBox
      

  4.   

    当你将窗体的backColor设为vbBlack时就看不到边框了.
      

  5.   

    Dim dwStyle As Long
    dwStyle = GetWindowLong(List1.hWnd, GWL_STYLE)
    dwStyle = dwStyle And (Not WS_BORDER)
    SetWindowLong(List1.hWnd, GWL_STYLE, dwStyle)