A
A
Alexander Dorofeev2015-05-17 19:53:54
C++ / C#
Alexander Dorofeev, 2015-05-17 19:53:54

How to create an inherited UserControl(Winforms)?

Forms are perfectly inherited, but there is a problem with User Control.
We follow the official Microsoft documentation:

To create an inherited control
In Solution Explorer, right-click the project on the ctlClockLib element, point to Add, and select User Control.
The Add New Item dialog box opens.
Select the Inherited User Control template.
In the Name field, enter ctlAlarmClock.cs and click Add.
The Select Components to Inherit dialog box opens.
Double-click ctlClock under Component Name.
In Solution Explorer, view the list of current projects

But it doesn’t work! In the Component Selection dialog, it requires a .dll file, but you can’t feed it a .cs. What should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pukhov, 2015-05-18
@Neuroware

well, for some reason they didn’t specify, in the solution explorer NOT on the referenses section, but on the project name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question