recently i tried draw a rectangle on win from and this is the code
namespace GDI1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//i want do the below lines for specific tab page :)
this.DoubleBuffered = true;
this.Paint += new PaintEventHandler(Form1_Paint);
}
private void Form1_Paint(object sender , System.Windows.Forms.PaintEventArgs e)
{
e.Graphics.FillRectangle(Brushes.Green, new Rectangle(50, 50, 530, 40));
}
}
}
now i want do the same thing but on specific tag page .... how can i set the codes for tabcontrol.