请问在VB6中,怎样能让列表框中的数据上下对齐?
如:
          张三     男      23
          李四     男      25
用什么方法能对齐呢!请大虾指教!!!

解决方案 »

  1.   

    记得不太清楚,试试
    list1.list.value="张三"+Vbkeytab+"男"+Vbkeytab+"23"
      

  2.   

    g.FixedRows = 0: g.Rows = 1
            g.FixedCols = 0: g.Cols = 5
            g.ColAlignment(0) = 2
            g.ColAlignment(1) = 1
            g.ColAlignment(2) = 2
            g.ColAlignment(3) = 2
            g.ColAlignment(4) = 1
            g.Row = 0
            g.Col = 0: g.Text = ""
            g.ColWidth(0) = pict.TextWidth(" ")
            g.Col = 1: g.Text = "姓名"
            g.ColWidth(1) = pict.TextWidth(g.Text & "   ")
            'g.ColWidth(1) = 1
            g.Col = 2: g.Text = "性别"
            g.ColWidth(2) = pict.TextWidth(g.Text & "        ") * 1.5
            g.Col = 3: g.Text = "年龄"
            g.ColWidth(3) = pict.TextWidth(g.Text & "        ") * 1.5
      

  3.   

    在picturebox中可以用print方法TAB()来实现上下对齐!
    至于列表框就不清楚了!
    楼上两位大虾,你们说的我都试过了!老报错!
    能不能说详细点!小弟先谢了!