Hi
How to make Addtab button that when I click on it the previous data with new TabPage?
- public Form1()
- {
- InitializeComponent();
- }
-
- private void tabPage1_Click(object sender, EventArgs e)
- {
-
- }
- private void button1_Click(object sender, EventArgs e)
- {
-
- string title = "TabPage " + (tabControl1.TabCount + 1).ToString();
- TabPage myTabPage = new TabPage(title);
- tabControl1.TabPages.Add(myTabPage);
-
- }
Pls Help Meeeeeeeeeeeee :((((