|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Function across formthe "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 bmichal***@gmail.com wrote:
Show quoteHide quote > I'm working on a presentation program where I have two forms, one is The first thing I'd try is rewriting your code sample as:> 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") > dim myPresentation as New Presentation myPresentation .slide(3,"show")
App.Config Recovers automatically
PrintPreview Control Function with Two Values upgrading to vb.net Serialize object to XML with nested structure Context Menu Not Closing Consume webservice within intranet from internet Command Line Arguments Clear spaces between tex Add items with value and text to a combobox |
|||||||||||||||||||||||