loading text boxes at run-time 
Author Message
 loading text boxes at run-time

Hi!

Technologies:

VB6/ADO2.1/SQL Server7

I am writing an application in which the user selects table, then clicks a
command button which opens an input form.
The form loads labels, text-boxes/checkboxes based on the table that user
has selected.
It works great - and saved me the time of creating 18 separate forms, one
for each table.

One problem, though, is that I would like to set a textbox's "Multi-line"
property to true if the data  type is SQL Server's "text" (ADO's
adLongVarChar). It turns out that the "Multi-line" property is read-only at
run-time.

Does anyone out there know (or can suggest) a work-around to this
limitation. The only thing I can think of is to place several "multi-line"
text boxes on the form at design time, and make a given text box visible in
response to the field being the "text" data type. I would like to avoid
"exception-based" coding such as this.

Any help very much appreciated.

Larry Calame



Thu, 13 Feb 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. changing the datasource property of a text box at run time

2. HELP: Adding text boxes during run time

3. Drag Text Box In Run Time

4. New Text Box during Run-time

5. Text Box during run time

6. SSTAB loading with controls at run time LOAD() vs INITIALIZE()

7. make new text-boxes at run-time

8. Resizing a text box at run time.

9. Create Text Box or Label at Run Time ?

10. Dragging a Text Box at run-time

11. Run-time control of rich text box scroll bar visibility

12. Creating new text boxes at run time

 

 
Powered by phpBB® Forum Software