[Winform Study Notes (5)] Quoting the custom control library (dll file)

Preface

This article mainly introduces how to reference the custom control library (dll file).

text

1. Generate dll file

Generate dll files by building the solution or regenerating the solution.
Insert image description here
The generated dll files are in the Debug folder under the bin folder.
Insert image description here

2. Select the toolbox item

Click Tools->Select Toolbox Item
Insert image description here

3. Select the dll file that needs to be imported.

Click Browse
Insert image description here
to find the dll file just generated
Insert image description here

4. Determine the controls that need to be imported

Click on the namespace to confirm the control to be imported.
Insert image description here

5. Import and use

Click OK.
Insert image description here
At this time, the control library we imported cannot be seen in the reference. You
Insert image description here
can see the imported control in the toolbar
Insert image description here
. After importing a custom control, you can see the imported custom control library in the reference.
Insert image description here

Guess you like

Origin blog.csdn.net/sallyyellow/article/details/132097278