Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[2499] Doing without Control Arrays

Last post 08-30-2007 8:05 AM by Sandheep. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2499] Doing without Control Arrays

    This thread is for discussions of Doing without Control Arrays.

    • Post Points: 25
  • 01-17-2003 11:29 AM In reply to

    Wonderful!

    Bless your cotton socks. Am new to VB.NET, aware of great possibilities but weighed down by the learning of new ways to do stuff. Building a menu screen of dynamically created buttons was worrying me until I saw from your beautifully succinct article that adding an event handler was just as easy as adding the control itself.

    Now, if you can find a way of replacing the DataLinks object so I can get a UDL interface straight in my program like I did in VB6, I'll be like a dog with 3 tails, not just the 2.
    • Post Points: 0
  • 05-11-2005 12:41 AM In reply to

    getting rid of the space

    Hey I got a question:

    Say for example I have a text file with the following values in it:

    Red
    Green
    Blue

    I want to read in from that file every 10 seconds or so, and list all those
    values that are in the text file in context menu as menuitems...

    If I use the technique you offered (which is really nice) in a loop,
    I will just clear the list and then read in the values again...
    Then I will have a problem: new space will be constantly created
    which will give me a memory leak... (Because of the New commands,
    and AddHandler). How can I get rid of that memory leak?

    If there is any other way of implementing what I need, I would gladly
    appreciate hearing about it.

    Thanks in advance,
    Jon
    • Post Points: 0
  • 07-18-2007 3:27 PM In reply to

    • Weasel
    • Not Ranked
    • Joined on 07-18-2007
    • Portugal
    • New Member
    • Points 5

    Re: [2499] Doing without Control Arrays

    Your code worked, it created the controls, and for buttons works very fine.

    But i have a problem with textboxes, for example i create 5 textboxes names Text1 Text2 Text3 Text4 Text5, how can i in a while or For to work with them ?



    • Post Points: 5
  • 08-30-2007 8:05 AM In reply to

    • Sandheep
    • Not Ranked
    • Joined on 08-30-2007
    • India
    • New Member
    • Points 5

    Re: [2499] Doing without Control Arrays

    Could you tell me how to add menu strip with sub menus (drop down list) and name it using VB 2005? In VB 6 I could add those using a for next loop at run time and make the menu as control array in which I used a text file to give the captions.

    Is it possible to give name like mnu(1), mnu(2) . . in VB 2005 so that i can use a loop at run time?

    • Post Points: 5
Page 1 of 1 (5 items)