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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
.NET Desktop feedback
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про