Link to home
Start Free TrialLog in
Avatar of restabro
restabroFlag for United States of America

asked on

Graphical output on tab pages

How do I create graphical output that will go on a tab page in a Form, instead of on the body of the form? I have a Form which has several tab pages. I am trying to create a program that will draw different graphs to the different tab pages. For example, I want a horizontal line to be displayed on the second tab page ("tabPage2"). How would I modify the following code to specify the second tab page instead of the base Form?

      Graphics* pg = CreateGraphics();
      Pen* pen1 = new Pen(Color::Black, 1.0);
      pg->DrawLine(pen1,0,500,500,500);
      pg->Dispose();

When I tried this code as written, the line appeared to be under the tab pages.
SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial