Frustrated newbie question

  • Thread starter Thread starter meh
  • Start date Start date
M

meh

I have inherited a treeview control. I can create instanciate build event
etc. in this new class in my main form and it all works. I thought that the
best design practice would be to create a new class file and define the
inherited tree class in this seperate file.
After moving it into the new file I can not seem to get it to recognize
itself on the main form.
Any info , pointers or links to info would be greatly appreciated....

tia
meh
 
meh said:
I have inherited a treeview control. I can create instanciate build event
etc. in this new class in my main form and it all works. I thought that the
best design practice would be to create a new class file and define the
inherited tree class in this seperate file.
After moving it into the new file I can not seem to get it to recognize
itself on the main form.
Any info , pointers or links to info would be greatly appreciated....

tia
meh

I'm not sure if I understand your question completly but you need to import
the namespace the inherited treeview is in, into the mainform with the using
keyword to let it be recognized (unless of course they are in the same
namespace). Maybe that's your error.

Yves
 
Hello

Is the form class in the same namespace as the your treeview control?
If not, are you using the treeview class full name in the form class?

Did you add the new file to the project?

If you made the new file in a separate project, did you reference the second
project?

Best regards,
Sherif
 
thanks for the responses...
I add the new class file to the existing project
the Namespace is the same

meh
 
Back
Top