Check for controls on form during Runtime 
Author Message
 Check for controls on form during Runtime

I use 2 kind of forms
1 for People (PersonId)
1 for Companies (CompanieId)

From VBA i would like to check which control (personId or
CampanieId) is on the screen.activeform.(If it exists)

Thx.

* Sent from RemarQ http://www.*-*-*.com/ The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Wed, 13 Nov 2002 03:00:00 GMT  
 Check for controls on form during Runtime
use this code

dim c as control
for each c in me
    if c.name = "personid" then
        ' my action
        ' ....
    end if
next

OK ???

Flavio
www.flaviosoft.com

salsito ha scritto nel messaggio

Quote:
>I use 2 kind of forms
>1 for People (PersonId)
>1 for Companies (CompanieId)

>From VBA i would like to check which control (personId or
>CampanieId) is on the screen.activeform.(If it exists)

>Thx.

>* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network
*
>The fastest and easiest way to search and participate in Usenet - Free!



Wed, 13 Nov 2002 03:00:00 GMT  
 Check for controls on form during Runtime
Works great thnx.

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Wed, 13 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Adding controls to forms during runtime

2. Dynamically adding a custom control to a form during runtime

3. trouble placing label control onto form during runtime

4. How to check, if a control supports READONLY property at Runtime in Windows Forms

5. Form manipulation during runtime

6. Adding Forms during Runtime

7. How do I duplicate the form during runtime?

8. How to program the creation of form during RUNTIME

9. how to address unloaded forms during runtime ?

10. Form manipulation during runtime

11. Scaling forms during runtime

12. Scaling forms during runtime

 

 
Powered by phpBB® Forum Software