Results 1 to 3 of 3

Thread: Vb vs Vb.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    5

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    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:
    1. Dim ctrls() as Control={Label1,Label2,Label3,Label4} 'put the names of whatever controls you want in the array
    2. 'then you can use it like a control array
    3. 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
  •  



Click Here to Expand Forum to Full Width