Add user control to tab

How to add a custom control to a tab from Designer. Is this possible, or can it be done only from code?

+6
source share
3 answers

All user-created controls are displayed on the "[Your Project Name]" tab in the toolbar. you may need to rebuild the project to make sure it refreshes the fine

+4
source

Yes, this can be done in the designer.

The user control can be registered in the Toolbox , and then selected and reset to the form.

The user control should not be stored in a separate project. If it does not appear in the Toolbox , you can add them manually using the option "Select items ..." (in VS2010 - think that this is "Configure ..." in 2008)

+3
source

Keep UserControl in a separate project. Drag it from the "My User Controls" section of the toolbar.

Read the Contol Testing section in the following article: http://msdn.microsoft.com/en-us/library/a6h7e207(v=vs.71).aspx

+2
source

Source: https://habr.com/ru/post/885481/


All Articles