|
-
Mar 17th, 2009, 04:06 PM
#1
Thread Starter
Addicted Member
How to make several labels with a counter
Hi,
I want to make several linklabels for some links I have in a DB. I want the program make a new linklabel for each link automatically.
I thought of something like this:
static counter as integer
Static point As Point
point.X = 50
point.Y = 70
For Each dtrDatarowDVDs In objdtsAantalPerCategorie.tblCategorieën
Dim linklabel(number of the counter) As New LinkLabel
linklabel(number of the counter).Text = dtrDatarowDVDs.GetChildRows("tblDVDstblLinks").item("hyperlink")
linklabel(number of the counter).Location = New Point(point.X, point.Y + 30)
linklabel(number of the counter).Size = New Size(30, 30)
Me.Controls.Add(linklabel(number of the counter))
Next
So what I want is that all my link stand under eachother. I don't know if I need a different label name for every linklabel.
Maybe someone can help me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|