restabro
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,50 0,500);
pg->Dispose();
When I tried this code as written, the line appeared to be under the tab pages.
Graphics* pg = CreateGraphics();
Pen* pen1 = new Pen(Color::Black, 1.0);
pg->DrawLine(pen1,0,500,50
pg->Dispose();
When I tried this code as written, the line appeared to be under the tab pages.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.