is there a way to create labels w/ specific names, specific borderstyles and specific text? if anyone knows how to do it in vb 5 and vb net especially that would be great!
Printable View
is there a way to create labels w/ specific names, specific borderstyles and specific text? if anyone knows how to do it in vb 5 and vb net especially that would be great!
This example assumes that ONE Label already exists, and its Index is 0 (that is a requirment):
VB Code:
Load Label1(1) With Label1(1) .Caption = "New Label" .Width = 2000 .BorderStyle = 1 .Move 100, 300 .Visible = True End With
Bruce.
thanks brucefox. lol uve helped me like 10 times!!!! thanks alot
No probs :)
There is a way to load them from scratch (ie no Control Array); there are few examples posted here.
Edit:
And to load multiple...VB Code:
Load Label1(Label1.Count) With Label1(Label1.Count - 1) .Caption = "Label " & Label1.Count .Width = 2000 .BorderStyle = 1 .Move Label1(Label1.Count - 2).Left, Label1(Label1.Count - 2).Top + Label1(Label1.Count - 2).Height .Visible = True End With