Hi
thought it would be easy enough, maybe im missing something logically...
As i select a product, i load that specific product form. in the form, a reference a class instance (Info) that has already been instantiated on startup in ApplicationEvents-
Dim Inf As New Info
as i load my product form, i have set it like that to access the class without creating a new instance of it
Private _Inf as Info
In my New class, i do this
_Inf = My.Application.Inf
this seems to work but i dont think its the best method. however, when i do the exact same in a sub UserControl on the product form, i get an exception error on a control EditEvent. I understand that this is because the _Inf has completely been qualified yet as the form isnt 100% instantiated.
So
what is a good method for multiple forms to access the same class containing data?
i could use My.Application.Inf for all access but is there a better way?
Thanks
