arshad115 -3 Junior Poster in Training

hi,i am making trees and i want to draw the structure of the tree in windows forms applications.since the class tree has the access to the trees root pointer.so only a member function of the class can draw the nodes of that tree.

but i cannot use the graphics pointer int the tree class,it gives some error.

i tried to use friend function but it wasnt working in form1.h .

Any Solutions??


Thanks