Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing A Control From Another Form 1

Status
Not open for further replies.

khowell78737

Programmer
Nov 18, 2003
22
US
How do you reference a control on another form?

I would like to unhide and increment a progress bar on the MDI parent from an MDI child.

I have tried (from the mdi_child):

dim mdiForm as mdi_parent
mdiForm.ProgressBar.Visible = True

and so on... but this doens't seem to work

I have tried referencing the mdi_parent without dimming it but this gives me a different set of properties.

What am I doing wrong?

Thanks in advance,
Kevin Howell
 
I think you need something like

Code:
dim mdiForm as mdi_parent
mdiform = me.mdiparent
mdiForm.ProgressBar.Visible = True


Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Thank you but the line

dim mdiForm as mdi_parent

gives me an error that mdi_parent isn't defined.

Surely there must be an easy way to do this wouldn't you think??

Kevin
 
Uh.... boy, am I a big dummy...

Yes, Christiaan you were right... I forgot that I genaricized the code snippet and that wasn't the name of the acutal MDI form... Only after fooling around with it for several minutes did I realize my mistake... <BLUSH>

errrr... I'd give you 2 stars if I could...

Kevin Howell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top