|
-
Mar 23rd, 2004, 12:51 AM
#1
Thread Starter
New Member
Vb vs Vb.net
got a problem i encounter..
in VB, you can create array labels just by giving value to the index in the label property..
so how do i create something similar in vb.net?? i couldn't find any index or array or something in the label property...
anyone can help this problem? thanks
-
Mar 23rd, 2004, 01:10 AM
#2
There shouldn't be a need to do that any longer. Try doing a search for 'Control Array' in this forum for different .NET ways of doing whatever it is you are doing.
-
Mar 23rd, 2004, 06:18 AM
#3
PowerPoster
Hi
Thought you might find some of my favourite threads helpful
http://www.vbforums.com/showthread.p...+arrays+VB.NET
http://www.vbforums.com/showthread.p...+arrays+VB.NET
http://www.vbforums.com/showthread.p...+arrays+VB.NET
Also, Edneeis posted the following some time ago.
VB Code:
Dim ctrls() as Control={Label1,Label2,Label3,Label4} 'put the names of whatever controls you want in the array
'then you can use it like a control array
ctrls(2).Text="I'm the second in the array!"
Remember that some of the threads may refer to VB.NET 2002.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
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
|