Hello Everyone,
I am a VB6 user who has recently moved to Visual Basic 2005.
I am using classes and had a query. I have a login class and in my project i want login information like valid or not etc to be available to every form.
Now the problem is if i instantiate that class and i put value using that object then every object maintains its own copy so how will i access that copy in some other form.
One way is to declare shared variable whom we can access throught the project. Is there any other way we can instantiate a class and the properties of that object can be accessed anywhere in class. (obj reference).
Will be grateful if anyone can help.
Thanks a lot,
Cheers,
JG
I am a VB6 user who has recently moved to Visual Basic 2005.
I am using classes and had a query. I have a login class and in my project i want login information like valid or not etc to be available to every form.
Now the problem is if i instantiate that class and i put value using that object then every object maintains its own copy so how will i access that copy in some other form.
One way is to declare shared variable whom we can access throught the project. Is there any other way we can instantiate a class and the properties of that object can be accessed anywhere in class. (obj reference).
Will be grateful if anyone can help.
Thanks a lot,
Cheers,
JG