473,480 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Function across form

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

Dec 4 '06 #1
1 977

bm********@gmail.com wrote:
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")

Dec 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
21321
by: NotGiven | last post by:
I have a field called telephone whose ONBLUR action is to call a javascript function: validatePhoneNumber(telephone) The non-working function is: function validatePhoneNumber(v) { var phone...
7
1209
by: Paul Taylor | last post by:
I want to show a figure based on an numeric entry that more than 20 (or 21and higher). If Number value is 21 or higher then the amount returned is Number value * 120 (£) * 10 (%) to give a...
9
1494
by: J. Hall | last post by:
Hi guys, Witten a function to check two input boxes, ensure that only one has a numerical value in, but I'm gettng the javascript error 'Object expected'?? function...
3
2274
by: Dooza | last post by:
Hi there, I was wondering if anyone had come across some javascript that would allow me to have a chart of say 20 music tracks, and be able to move each track up and down the chart using up/down...
1
4784
by: Dalan | last post by:
I have tried both methods of using DSum and creating a Function to address summing some number columns, but to no avail. Since this has been a popular topic over the years, I'm sure I'll receive...
3
4486
by: John Baker | last post by:
Hi: I have a field on a form that is names 125POP. It is currency. I can refer perfectly well to it in a text box when I want to add it to something as in: =+ HOWEVER when i want to sum...
3
2645
by: Stephen Sprunk | last post by:
On a project I'm working on, I ran across the following macros: /* assume s is struct stream *, s->p is char, v is unit16_t or uint32_t */ #define in_uint16_le(s,v) { v = *((s)->p++); v +=...
9
5287
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
13
3571
by: Andrew Falanga | last post by:
HI, Just a warning, I'm a javascript neophyte. I'm writing a function to validate the contents of a form on a web page I'm developing. Since I'm a neophyte, this function is quite simple at...
0
7097
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6750
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4794
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4493
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3003
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.