I have one form that initializes a class, called Players.
But, I need to access these initialized values in another form.
Obiously, if I do Players player = new Players(); it creates a new instance of the Players class, but has all variables set to defaults, not the previous values when the first form was run.
I have tried just Players player; the compile compiles OK, but then I get an NULL REFERENCE error when trying to access the class..
Can I access this initialized class information from another form? I have read a bit, but I think I am confusing myself.
But, I need to access these initialized values in another form.
Obiously, if I do Players player = new Players(); it creates a new instance of the Players class, but has all variables set to defaults, not the previous values when the first form was run.
I have tried just Players player; the compile compiles OK, but then I get an NULL REFERENCE error when trying to access the class..
Can I access this initialized class information from another form? I have read a bit, but I think I am confusing myself.
Comment