Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

WinForms Dynamically created DropdownList

Working with WinForm .Net 4.x project  
VB COde

I have a Form with a dropdownlist on it named ddlHoliday1

What I want is on selection made from the ddl,
Dynamically add another ddl right below it.
When that one has a selection made...do it again
Up to a total of 7 Dropdown lists.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

do you really need to create them dynamically or just set there content according to the previous one?

in the case the second option is enough, check http://emoreau.com/Entries/Articles/2007/01/Setting-a-masterdetail-relationship-between-two-ComboBox.aspx
Avatar of Larry Brister

ASKER

emoreau

I guess the point is I don;t want 7 ddl's cluttering up the form unless they get used.

I suppose I could create them all...sstack them somewhere...and then make visin;e and position on click or previous ddl?
you can always play with there visible state on the fly.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well...
YAY!  WHoopie! Attaboy!  Hot Dog!  Way...to...go!

Uhhhhh...remind me to buy you a sody-pop sometime.