Really tough one 
Author Message
 Really tough one

I would like to add controls at run time that are not already on a form (no
control arrays).  I realize that in VB you "can't do that", but there has
to be a way using API calls or something.  Anyone have any hints, ideas,
etc?

Thanks!

-John



Tue, 21 Dec 1999 03:00:00 GMT  
 Really tough one

Quote:

> I would like to add controls at run time that are not already on a form (no
> control arrays).  I realize that in VB you "can't do that", but there has
> to be a way using API calls or something.  Anyone have any hints, ideas,
> etc?

> Thanks!

> -John

Hi John -

Umm... how about making whatever controls that you MIGHT want to appear
on the form set to Visble = False and turning them to true when you want
them at run time. One other way to do that is put them in a frame and
just manipulate the frame's Visible property. Or make control arrays and
only let the "new" ones be visible while the originals (index = 0)
remain hidden. That's my 2 cents worth...

Good Luck,

Randy Barrow

=======================================
Remove NOSPAM from address for replies
=======================================



Wed, 22 Dec 1999 03:00:00 GMT  
 Really tough one


Quote:

>I would like to add controls at run time that are not already on a form (no
>control arrays).  I realize that in VB you "can't do that", but there has
>to be a way using API calls or something.  Anyone have any hints, ideas,
>etc?

You should use CreateWindow and CreateWindowEx, but I haven't tried it or saw
any code. I just heard it can be done, so don't give up if you these don't
work.

Shahar Dobzinski
--
Add Office 97 look and feel to your applications.
Geppetto's Hammer - http://mwbdesign.com/geppetto



Wed, 22 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Really really stuck on this one. (QBasic Question)

2. REALLY TOUGH QUESTION

3. A REALLY tough question!

4. A tough one! Import password protected VBA

5. Attention Access Experts, this one is tough...

6. Running Native Access commands in VB..Tough one

7. tough one for you experts

8. A tough one.. animating buttons

9. This is a tough one....

10. Tough one!!!

11. tough one for you experts

12. tough one for you experts out there...

 

 
Powered by phpBB® Forum Software