Basic VB.Net Class Question
Posted on 2009-07-06
How can I have a class created on one (main) form be able to be access from other forms?
Example, when the main window loads, I do something like:
--> Dim User as new UserClass(UserId)
then I can use 'User' on that form, however if I open a new window like so:
--> Dim SettingWindow as new SettingsFrm
I cannot access the 'User' object...
I know this is how it works, but how (I'm sure basic) way can I get access to the 'User' object from the child window (not a copy, same one, without passing it as a parameter)
Feel like it's a silly question - but looking on Google did not reveal much.
(Code above from head, may not be 100% correct)