16,554
社区成员
发帖
与我相关
我的任务
分享
...
dim frm as new Form1()
Try
While myReader.Read()
Dim xx As String
xx = myReader(0)
Dim chk As New CheckBox()
chk.Left=10
chk.Top=i*30+10
frm.Controls.Add(chk)
End While
Finally
myReader.Close()
End Try
...
Dim objConn As New OleDbConnection()
objConn.ConnectionString = conn
Dim objCmd As New OleDbDataAdapter("select * from 人员表", objConn.ConnectionString)
Dim ds As New DataSet()
objCmd.Fill(ds)
Dim myTable As DataTable = ds.Tables(0)
for i as integer=0 to ds.Tables(0).Rows.Count-1
dim chk as new CheckBox()
chk.Location=new Point(10,i*30+10)
me.Controls.Add(chk)
next
for i as integer=0 to ds.Tables(0).Rows.Count-1
dim chk as new CheckBox()
chk.Location=new Point(10,i*30+10)
me.Controls.Add(chk)
next