Click to See Complete Forum and Search --> : Accessing a Form from a Module?


December 11th, 1999, 06:43 PM
I have a function in a Module (a .BAS file) that needs to change a progress bar in one of my forms in an MDI project. This function, UpdateProgBar(), is used in another Function with AddressOf, which is why it needs to be in a module as opposed to code in the form I want to change. Is there any way from a module Function (or Sub) to access a form and then change it's value?

I have tried the screen.ActiveForm method (also MDIform.ActiveForm), but it is possible that the form I need to change is not the active one! Ideally, I would like to enumerate though all of the forms in the project and find the one with the right caption, and then change that forms progress bar. Can this be done??

Thank you very much for your help.

Jeff

December 12th, 1999, 10:46 AM
formname.controlname.propertyname = value