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
Re: Multiple Forms / Objects
try reading this topic from the vb.net codebank
http://vbforums.com/showthread.php?t=313050
Re: Multiple Forms / Objects
Thank you - that was exactly what I needed.