Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming dynamic GUI's

Status
Not open for further replies.

WilliamUT

IS-IT--Management
Oct 8, 2002
182
US
I need to program a dynamic GUI. I have a server that communicates with a client. The client downloads a set of questions from the server and returns the input back to the server for storage in a database. The questions can change. One site might ask 5 questions where as another might ask 100 questions. I need the layout of my form to look professional and clean. Whats the best way to generate some kind of dynamic form at runtime that can accomplish this? Does anybody have an example? Any advice would be much appreciated. Thanks!
 
Code:
Dim TextBoxArray() As Textbox
.....
Do until myCounter = CountOfControls
Redim Preserve TextBoxArray(myCounter)
TextBoxArray(myCounter) = New TextBox
TextBoxArray(myCounter).Height = SomeIncrementingNumber
Me.Controls.Add(TextBoxArray(myCounter)
myCounter = myCounter + 1
Loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top