How to remove and insert TabPages on VisualBasic.NET

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

Ariel

Leave a Reply

Your email address will not be published. Required fields are marked *