Community discussion forum

Doing without Control Arrays

This is a comment thread discussing Doing without Control Arrays
  • 10 years ago

    This thread is for discussions of Doing without Control Arrays.

  • 6 years ago

    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.

  • 4 years ago
    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
  • 2 years ago
    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 ?



  • 2 years ago

    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?

  • 1 year ago

    Hello,

     Have you get some solutions for your problem?

    I´m with similar problem.

    If you can send your solution, I will thanks so much.

    I need change the text of many textbox in a While or For, too.

     Best Regards.

    André

  • 10 months ago
    Thanks for the Code..it Really Helped me a lot.. Thanks and Regards, Jayaprakash

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!