CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Replicate select number of comboboxes

    --------------------------------------------------------------------------------

    I have not worked with VB in so long that I might as well be a newb.
    I know this can be done, and if I remember correctly, it is fairly simple, but for the life of me, I can't remember how.

    I have a textbox that will be used for entering a number.
    I have a combobox with a list of precreated options.
    I need to create the combobox as many times as the number entered in the textbox. Essentially I'm creating a list of items, the number of which is determined by the textbox value, the values of which will be chosen from the comboboxes. This means that the comboboxes all need to be linked as a group with sequential numbering.

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Replicate select number of comboboxes

    In VB 6 that a Control array...

    However VB.NET does not support Control Arrays any more...

    Gremmy
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

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

Featured