Remove opened tab (C#)

This post I will show you how remove a opened tabs from your notepad
  1. First add abutton
  2. You can add a image icon to it or add shortcut key for it(You can change it yourself)
  3. I name it as close.
  4. Add following codes
  5. TabPage ct = tabControl1.SelectedTab;
                tabControl1.TabPages.Remove(ct);

No comments:

Post a Comment