Results 1 to 2 of 2

Thread: [RESOLVED] [2008]Filling combo box from a parent form.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Resolved [RESOLVED] [2008]Filling combo box from a parent form.

    Hello,

    What is the best method to fill a combo box from a parent form.

    The combo boxes are in a child from and the child form is opened by the parent form.

    I have 2 combo boxes and wondering what is the best method to fill them from the parent form.

    The method I was thinking of usig was adding a list of string and sending the list in the constructor of the child form. Then the list of list will populate the combo boxes.

    The data I have is always in the parent form and this is why I have to send it somehow to the child form.

    Thank,
    steve

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008]Filling combo box from a parent form.

    If the child form must ALWAYS have this data then, yes, use the constructor. Otherwise use a property, which may or may not be set.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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