Problems using graphic object to display text on tabPage

May 31 2006 7:28 AM
I have created text on a tabpage by using graphic object. Graphics g = null; g = tabPage1.CreateGraphics(); g.DrawString("Hello", new Font("Courier New", 10, System.Drawing.FontStyle.Regular), new SolidBrush(Color.Black), 10, 20); g.Dispose(); Labels were used before instead and the tabPage was scrollable (tabPage.AutoScroll = true) but the text were displayed too slowly. But now, after changing labels to graphic objects, the tabpage is not scrollable any more and thus causes missing text. Also, whenever the splitter is moved, the existing text on the tabPage disappeared and the tabPage becomes blank. Any solutions to these problems?

Answers (3)