Create Text Box or Label at Run Time ? 
Author Message
 Create Text Box or Label at Run Time ?

I am trying to build a DDE program in VB 3.0 to feed information into Excel
5.0.  However, the items cannot be determined at design time.  Is it possible
to create a Text Box or Label at runtime such that a new DDE item can be
created to be used by Excel.

Regards.

Damon Tam



Tue, 02 Dec 1997 03:00:00 GMT  
 Create Text Box or Label at Run Time ?

Quote:

> I am trying to build a DDE program in VB 3.0 to feed information into Excel
> 5.0.  However, the items cannot be determined at design time.  Is it possible
> to create a Text Box or Label at runtime such that a new DDE item can be
> created to be used by Excel.

> Regards.

> Damon Tam

        ----------

    The best way that I know to do this is to use a control array
of text boxes or labels.  Add a text box or label to your form and
set its Index property to 0.

    When you need a new text box at run-time, use the following:

    Load Text1(n)               'Where n is the new index value.
    Text1(n).Visible = True     'Assuming you want it visible.

    I've used this in several projects where I've needed to establish
DDE links with multiple applications with satisfactory results.

    Cordially,
    Bob

        ----------



Tue, 02 Dec 1997 03:00:00 GMT  
 Create Text Box or Label at Run Time ?
Create a control array dynamically by giving the first control's index that you
create at run time an index number.


Wed, 03 Dec 1997 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Creating new text boxes at run time

2. Creating new text boxes at run time

3. Create Multiline Text Box at Run Time

4. creating labels at run time

5. Creating labels at run-time

6. How to create labels or Textboxes in Run-Time

7. Creating labels at run-time

8. creating label in picturebox at run time

9. Creating labels at run time

10. how can I create Label or ListBox or TextBox at VB5 as run time

11. How to create labels or Textboxes in Run-Time

12. Dynamically create labels/text-boxes

 

 
Powered by phpBB® Forum Software