using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.tabControl1.Visible = false;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.tabControl1.Visible = false;
}
Int32 i = 0;
private void button1_Click(object sender, EventArgs e)
{
this.timer1.Enabled = true;
this.tabControl1.Width = 0;
this.tabControl1.Visible = true;
i = 0;
} private void timer1_Tick(object sender, EventArgs e)
{
i = i + 10;
if (this.tabControl1.Width < 400)
{
this.tabControl1.Width = i;
}
else
{
this.timer1.Enabled = false;
}
}
}
}