Solved

Dynamic VB Forms

Posted on 1998-10-13
2
125 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now