|
-
Feb 17th, 2005, 01:23 AM
#1
Thread Starter
New Member
Multiple Forms / Objects (resolved)
Hi!
I am very new to .NET, so I'm sorry if this is a dumb question.
I am creating an application with multiple forms, one being a "main" form. Here is my problem:
I can set this main form as the Startup object. In this case, it automatically calls the New() function to create a new instance. However, if I do this I am not sure how to refer to this automatically created object from the other forms (for example, to call a function or procedure located on this main form).
I have also tried setting some sort of Module to the startup object, creating a new instance of the "main" form object from there, and showing it. However, the program ends when it reaches the end of this module.
Thanks!
Kevin_P86
Last edited by Kevin_P86; Feb 17th, 2005 at 03:43 PM.
-
Feb 17th, 2005, 03:00 AM
#2
Re: Multiple Forms / Objects
try reading this topic from the vb.net codebank
http://vbforums.com/showthread.php?t=313050
-
Feb 17th, 2005, 03:42 PM
#3
Thread Starter
New Member
Re: Multiple Forms / Objects
Thank you - that was exactly what I needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|