How to: Add a Control to a Tab Page
You can use the Windows Forms TabControl to display other controls in an organized fashion. The following procedure shows how to add a button to the first tab. For information about adding an icon to the label part of a tab page, see How to: Change the Appearance of the Windows Forms TabControl.
To add a control programmatically
Use the Add method of the collection returned by the Controls property of TabPage:
tabPage1->Controls->Add(gcnew Button);
tabPage1.Controls.Add(new Button());
tabPage1.Controls.Add(New Button())
See also
Sadarbojieties ar mums vietnē GitHub
Šī satura avotu var atrast vietnē GitHub, kur varat arī izveidot un pārskatīt problēmas un atgādāšanas pieprasījumus. Lai iegūtu papildinformāciju, skatiet mūsu līdzstrādnieku rokasgrāmatu.
.NET Desktop feedback
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par