Solved

Dynamic VB Forms

Posted on 1998-10-13
2
127 Views
Last Modified: 2010-04-30
Can anyone tell me if it is possible to create dynamic VB forms that only show controls according to a number parameter entered by the user?
A quick description.... I am new to VB and I want to create a small program that compiles surveys. The parameters to be entered are: number of categories on the survey form, number range for responses (eg 1 to 5 or 1 to 10, etc), number of surveys given out and number of surveys returned. What I need is for the form to show the right number of categories on the form according to the number entered. Everything else about this program is almost all straight math and file I/O. Also what is a good VB5 book out there??? I get confused with the selections out there now and I figure an expert will give me an informed choice rather than having to trust the blurbs on the book covers.

Thanks in advance for all the help....
George
0
Comment
Question by:gpequegn
2 Comments
 
LVL 3

Accepted Solution

by:
traygreen earned 150 total points
ID: 1439798
Question 1
in VB 5
Create an array of controls of each type
(set the index property to 0)

to add a control
Load <control array name>(<control array name>.Count)

some books I use
Doing Object in VB 5
Core Visual Basic 5

0
 

Author Comment

by:gpequegn
ID: 1439799
Sorry to take so long to reply to your answer.....I was suddenly compelled to stay in a hospital for two weeks and have only gotten back to my PC tonight...

Thanks for the answer and again, sorry for the delay.....

George P.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

785 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