Home All Groups Group Topic Archive Search About
Author
4 Dec 2006 6:07 PM
bmichalski
I'm working on a presentation program where I have two forms, one is
the "presentation" and the other is the controller form.  In the
presentation form, I've written a few functions I use to slide, move,
hide, etc components on the form.  I've been testing them by clicking a
few small buttons I placed on the presentation form but I'm trying to
move all that off to the configuration form.  How would I go about
calling the function to run on the presentation form through the
control form?  A sample function would be slide(1,"show")  which when
executed in the presentation form, tells item number 1 to hide.

I've tried this code to no avail, getting the error "Object reference
not set to an instance of an object"

Dim presentation As presentation
presentation.slide(3, "show")

Any help would be greatly appreciated.

Thanks,
Brian M

Author
4 Dec 2006 6:13 PM
lord.zoltar
bmichal***@gmail.com wrote:
Show quoteHide quote
> I'm working on a presentation program where I have two forms, one is
> the "presentation" and the other is the controller form.  In the
> presentation form, I've written a few functions I use to slide, move,
> hide, etc components on the form.  I've been testing them by clicking a
> few small buttons I placed on the presentation form but I'm trying to
> move all that off to the configuration form.  How would I go about
> calling the function to run on the presentation form through the
> control form?  A sample function would be slide(1,"show")  which when
> executed in the presentation form, tells item number 1 to hide.
>
> I've tried this code to no avail, getting the error "Object reference
> not set to an instance of an object"
>
> Dim presentation As presentation
> presentation.slide(3, "show")
>

The first thing I'd try is rewriting your code sample as:

dim myPresentation as New Presentation
myPresentation .slide(3,"show")