Referencing a function in another class using vs 2003
Posted on 2006-06-14
I am currently converting to visual studio 2003 from vs 2005, however I have encountered a problem with the Shared functions.
In 2005 I can reference a Friend sub from another form, In 2003 I get an error saying 'Reference to a non-shared member requires an object reference.
If I create an instance of the form in the second form the error message goes away but this creates a new reference of the form and does not display the correct info. How can I reference a function in another class using vs 2003?
Any ideas? thank you.