Home > Net > In c # call each other between the two projects
In c # call each other between the two projects
Time:12-31
Hello, everyone, The same solution, the two projects, is generally MainFrm ClassLibrary1 in the project of the class in the function (number, etc.); If want to control in ClassLibrary1 MainFrm interface of the control information (such as printed in the Listbox control), with a delegate is how to achieve?
CodePudding user response:
Internet is not a pile of https://www.cnblogs.com/sjqq/p/6917497.html
CodePudding user response:
First of all, An interface to call a class library, is normal, But a class library, the coupling of the matter call interface, is not normal,
Then said the method, You pass a control object, do not need to entrust
CodePudding user response:
You always call the class library the following class, is a class method, the method is the return value and return value judgment in MainForm you receive if return 1, after you perform print is not good?
CodePudding user response:
This is called a circular reference, if there is problem should, in turn, think about your ideas. Don't go down.