Graphical output on tab pages
Posted on 2006-04-16
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);
When I tried this code as written, the line appeared to be under the tab pages.