accesing form from another Class
C#
2
Posts
2
Posters
0
Views
1
Watching
-
i have a binary tree class in SDI form program. i want to print binary tree on that form using GDI commands. can any one pls tell me how can do it. pls give sample code to do it. -- modified at 13:41 Tuesday 9th May, 2006
-
i have a binary tree class in SDI form program. i want to print binary tree on that form using GDI commands. can any one pls tell me how can do it. pls give sample code to do it. -- modified at 13:41 Tuesday 9th May, 2006
Create a BinaryTreeRenderer class.
public class BinaryTreeRenderer
{
//... put any attributes and methods you need to setup the state of the rendererpublic void Render(System.Drawing.Graphics graphics, BinaryTree theTree) { graphics.DrawLine(....); }
}
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike