Hi there, I recommend you create a Sub Main in a module:
Public Module EntryPoint
Public fMainForm As MainForm
Public Sub Main(Arguments() As String)
fMainForm = New MainForm
Application.Run(fMainForm)
End Sub
End Module
Now, whereever you are, you can access fMainForm to be the main form.
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Maybe it's a game called 'Punish the User'"
"Shadowboxer" <sh*********@mac.com> wrote in message
news:bj********@library2.airnews.net...
What happened to global objects?
I want to make the main form accessible throughout all the classes as a
single instance, right now I have to make a cludgy pass back through the
class structure to get to a textbox.
Also, how do I setup an event listener on the global form that I can call
from a RaiseEvent in one of the classes?
thanks -J