Control in BaseControlLibrary calls code in Library.cs

BenTam-3003 686 Reputation points
2022-08-11T13:04:31.247+00:00

Dear All,

I create a BaseControlLibrary.csproj and add 3 controls to it. I plan to include all common controls. Then I create a Library.cs. I want to get access to the code in the Library.cs from a control in the BaseControlLibray.csproj.

Solution

230453-solution.gif

Error

230409-error.gif

Developer technologies | C#
{count} votes

6 answers

Sort by: Most helpful
  1. BenTam-3003 686 Reputation points
    2022-08-17T12:43:29.28+00:00

    Hi @AgaveJoe

    Your approach only fixes the error in a class of BaseControlLibrary. However, my problem is calling the "Library.cs" from a Control of the "BaseControlLibrary". Now it consists of many 3 Controls Panel, Button, and CheckBox. In the future, I will add other Controls to "BaseControlLibrary". My screen capture for the "Panel.cs" shows this problem. I don't know how to fix it. Please help!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.