Share vb.net hide tabpage

thuongnang409

New member
### Cách ẩn trang tab trong vb.net

** Bước 1: Tạo dự án Windows Forms mới. **

1. Mở Visual Studio và chọn tệp **> MỚI> Dự án **.
2. Trong hộp thoại ** Dự án mới **, chọn ** Ứng dụng Windows Forms ** và nhấp vào ** OK **.

** Bước 2: Thêm TabControl vào biểu mẫu của bạn. **

1. Kéo ** TabControl ** từ hộp công cụ ** ** vào biểu mẫu của bạn.
2. Trong cửa sổ ** Thuộc tính **, đặt thuộc tính ** tên ** của TabControl thành ** TabControl1 **.

** Bước 3: Thêm hai bảng vào TabControl của bạn. **

1. Nhấp chuột phải vào TabControl và chọn ** Thêm TabPage **.
2. Trong cửa sổ ** Thuộc tính **, đặt thuộc tính ** văn bản ** của bảng đầu tiên thành ** tabpage1 **.
3. Lặp lại bước 2 để thêm một chiếc taxi thứ hai vào TabControl.

** Bước 4: Ẩn về chiếc taxi thứ hai. **

1. Trong cửa sổ ** Thuộc tính **, đặt thuộc tính ** hiển thị ** của bảng thứ hai thành ** false **.

** Bước 5: Chạy ứng dụng của bạn. **

1. Nhấn ** F5 ** để chạy ứng dụng của bạn.
2. Bạn sẽ thấy hai bảng điều khiển trong TabControl.Tabpage thứ hai nên được ẩn.

** Tài nguyên bổ sung **

* [Cách ẩn tab trong các biểu mẫu Windows] (Update Asp Code to Asp.net Code)
* [Cách ẩn trang tab trong vb.net] (https://www.tutorialspoint.com/vbnet/vbnet_hide_tab_page.htm

### hashtags

* #vb.net
* #Windows Forms
* #tab Điều khiển
* Trang #tab
* #Trốn
=======================================
### How to hide a tab page in VB.NET

**Step 1: Create a new Windows Forms project.**

1. Open Visual Studio and select **File > New > Project**.
2. In the **New Project** dialog box, select **Windows Forms Application** and click **OK**.

**Step 2: Add a TabControl to your form.**

1. Drag a **TabControl** from the **Toolbox** onto your form.
2. In the **Properties** window, set the **Name** property of the TabControl to **tabControl1**.

**Step 3: Add two TabPages to your TabControl.**

1. Right-click the TabControl and select **Add TabPage**.
2. In the **Properties** window, set the **Text** property of the first TabPage to **TabPage1**.
3. Repeat step 2 to add a second TabPage to the TabControl.

**Step 4: Hide the second TabPage.**

1. In the **Properties** window, set the **Visible** property of the second TabPage to **False**.

**Step 5: Run your application.**

1. Press **F5** to run your application.
2. You should see two TabPages in the TabControl. The second TabPage should be hidden.

**Additional Resources**

* [How to Hide a Tab in Windows Forms](https://www.codeproject.com/Articles/10314/How-to-Hide-a-Tab-in-Windows-Forms)
* [How to Hide a Tab Page in VB.NET](https://www.tutorialspoint.com/vbnet/vbnet_hide_tab_page.htm)

### Hashtags

* #vb.net
* #Windows forms
* #tab control
* #tab page
* #hide
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top