Can't Access objects in .net outside of header
I am new to this forum and .net. I have created a form in Visual Studio Express C++ including a ListBox and other objects.
If I have a function in the header file, it recognizes the listbox and its access methods perfectly. If I take this same function and drop it into an associated .cpp file, it can't see the object or it's properties. I have included all the usual, using namespace and include files you would expect. I've tried altering the object to public to no avail and have run out of ideas.
Anyone out there who can help?
Thanks in advance!
|