Z
ZenoParadox
Let's say I have form called MyForm which has a button called MyButto
and a subform called MySubForm. The SubForm's name is FormSubForm an
it has a function in its code called MySubFormFunction.
How can I trigger MySubFormFunction by clicking MyButton on MyForm?
In this particular instance, I'm actually using the subform to load
large image into an Image control (I want it in a subform so that I ca
use the scroll bars -- if there's another way to make a scrollabl
image without custom controls I'd love to know it). I don't want it t
try and load the image though until my main form has provided th
correct filename and the user has said to load it. But I can't seem t
trigger a foreign subform's function (in this case, to load the imag
file from a given URL) from my main form.
I could probably do a jury-rigged approach where I have a hidden Tex
control on the subform that I change the contents of from the mai
form, and then use the Change event to trigger the function... but tha
seems really sloppy and potentially error prone. There's got to be
way to do this properly... help
and a subform called MySubForm. The SubForm's name is FormSubForm an
it has a function in its code called MySubFormFunction.
How can I trigger MySubFormFunction by clicking MyButton on MyForm?
In this particular instance, I'm actually using the subform to load
large image into an Image control (I want it in a subform so that I ca
use the scroll bars -- if there's another way to make a scrollabl
image without custom controls I'd love to know it). I don't want it t
try and load the image though until my main form has provided th
correct filename and the user has said to load it. But I can't seem t
trigger a foreign subform's function (in this case, to load the imag
file from a given URL) from my main form.
I could probably do a jury-rigged approach where I have a hidden Tex
control on the subform that I change the contents of from the mai
form, and then use the Change event to trigger the function... but tha
seems really sloppy and potentially error prone. There's got to be
way to do this properly... help