请各位帮忙,指点一下。
我从数据库里读出所有ID,并用LABEL显示,我想实现得是,没一行只显示5个ID值,那么我应该怎样让LABEL在显示的时候换行呢。
代码如下:
Dim i As Integer
Dim ii As Integer = CInt(objdataset.Tables("photo").Rows.Count) - 1
For i = 0 To ii
Label11.Text = Label11.Text & " " & CStr(objdataset.Tables("photo").Rows(i)("id"))
Next