How to remove and insert TabPages on VisualBasic.NET

March 23, 2016 | By | Reply More

A quick note to my self and for all of you that currently learning Visual Basic programming language using Visual Studio (Visual Basic.NET). On this note, I want to show you how to remove existing TabPages on a TabControl. Also I will insert the existing TabPages programmatically.

Remove TabPages

As you can see, I have a TabControl1 and there is one TabPage called TabPage_Collar. The code above will remove TabPage_Collar from TabControl1. Please note that this method will not delete any controls in the tabpage. It only hiding it actually.

Insert TabPage

The code above will insert TabPage_Collar to TabControl1.

remove tabpage on vb.net 1

Tags: , ,

Category: Programming, VisualBasic.NET

Leave a Reply