Solved

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

Posted on 2013-01-14
4
199 Views
Last Modified: 2013-01-22
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?
0
Comment
Question by:Jasmin01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 38777171
0
 

Author Comment

by:Jasmin01
ID: 38777199
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?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38778873
Can you not use a control like DataGridView or Listbox?
0
 

Author Comment

by:Jasmin01
ID: 38781430
I need textboxes to be drawn dynamically.  A listbox or datagridview is not really an option.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question