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
195 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now