|
-
May 13th, 2003, 11:10 PM
#1
Thread Starter
Hyperactive Member
Accessing properties of controls on other forms.
Hi,
I have two forms.
formA and formB
I am trying to code it so that when formB closes, the statusbar on formA will clear.... any ideas? i've tried everything! thanks for any help.
-
May 13th, 2003, 11:26 PM
#2
PowerPoster
First, you have to make the control public instead of the default of private.
Next, you need to have a reference to the form that the control is on. Once you have a reference, you can use it to get to your control to access its properties (that is why it needs to be public). You can pass this reference in by the forms constructor...search the forum, you will find many examples on that.
I searched for you, here is what you need:
http://www.vbforums.com/showthread.p...hreadid=216964
Last edited by hellswraith; May 13th, 2003 at 11:30 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|