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 UItest
{
public partial class Form1 : Form
{
private readonly TabControl tabControl1;
public Form1()
{
tabControl1 = new TabControl();
tabControl1.Parent = this;
var tabpage = new TabPage();
tabpage.Text = "page";
tabControl1.TabPages.Add(tabpage);
tabControl1.TabPages.Add(tabpage);
tabControl1.Dock = DockStyle.Fill;
//注册响应函数
tabControl1.Selected += new System.Windows.Forms.TabControlEventHandle
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace UItest
{
public partial class Form1 : Form
{
private readonly TabControl tabControl1;
public Form1()
{
tabControl1 = new TabControl();
tabControl1.Parent = this;
var tabpage = new TabPage();
tabpage.Text = "page";
tabControl1.TabPages.Add(tabpage);
tabControl1.TabPages.Add(tabpage);
tabControl1.Dock = DockStyle.Fill;
//注册响应函数
tabControl1.Selected += new System.Windows.Forms.TabControlEventHandle