Solved

Dynamic VB Forms

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

685 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