TabPage

  • Thread starter Thread starter Thore Berntsen
  • Start date Start date
What you can do is add a new paint handler to the particular TabPage
control, e.g. in the form constructor:

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

tabPage2.Paint += new PaintEventHandler(tabPage2_Paint);

}

The PaintEventHandler can look something like this (just add it as a member
to the Form's class:

private void tabPage2_Paint(object sender, PaintEventArgs pe)

{

Graphics gfx = pe.Graphics;

gfx.DrawLine(new Pen(Color.Gold), 10, 10, 100, 100);

}
 
It worked like a dream. Thank You!
Maarten Struys said:
What you can do is add a new paint handler to the particular TabPage
control, e.g. in the form constructor:

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

tabPage2.Paint += new PaintEventHandler(tabPage2_Paint);

}

The PaintEventHandler can look something like this (just add it as a member
to the Form's class:

private void tabPage2_Paint(object sender, PaintEventArgs pe)

{

Graphics gfx = pe.Graphics;

gfx.DrawLine(new Pen(Color.Gold), 10, 10, 100, 100);

}


--
Regards,

Maarten Struys, eMVP
PTS Software bv
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Compact framework 2.o 4
Notifications 1
Fileversion 3
Pocket PC to Windows CE 5
Connection Settings 1
Service Pack 2.0 for Compact Framework? 1
Storage Card 2
DEFRAGMENTATION OF STORAGE CARD 9

Back
Top