Line on tabPage any chance?

  • Thread starter Thread starter Sidney
  • Start date Start date
S

Sidney

Hi to all,
is there any possibility to place a line on a tabPage of
a tabControl or bring the line to the front?


thanks in advance
 
Sidney,

Even though the Paint event is not surfaced from the designer, it is
supported on tabControl.

You can add the following code to your form's constructor:
this.tabPage1.Paint += new
PaintEventHandler(this.tabPage1_Paint);

And this code elsewhere in your application:
private void tabPage1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawLine(new Pen(Color.Black), 0, 0, tabPage1.Width,
tabPage1.Height);
}


Tim Gerken
..NET Compact Framework Product Team
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: "Sidney" <[email protected]>
| Sender: "Sidney" <[email protected]>
| Subject: Line on tabPage any chance?
| Date: Tue, 4 Nov 2003 07:32:24 -0800
|
| Hi to all,
| is there any possibility to place a line on a tabPage of
| a tabControl or bring the line to the front?
|
|
| thanks in advance
|
 
Back
Top