Link to home
Start Free TrialLog in
Avatar of Jasmin01
Jasmin01Flag for South Africa

asked on

How to dynamically create tab on form and populate tab with items based on what the user enters

Hi.

I have a screen where the user selects different forms of communication methods.  This can be just 1 or up to 20.
Depending on what the user selects, I need to add a tab to my main form that will be populated with all the methods of communication that the user entered, so, if I only entered 2 methods, the new tab will only be populated with 2 textboxes, and if I selected 10 methods, the tab will have 10 textboxes on it.

Any ideas on what I need to do to achieve this?
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India 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
Avatar of Jasmin01

ASKER

Thanks for that.  How will I get it to populate the tab, based on how many communication methods the user entered?  Should I store that information in an array, then loop though the array to populate?  Is that the best way to do this?
Can you not use a control like DataGridView or Listbox?
I need textboxes to be drawn dynamically.  A listbox or datagridview is not really an option.