What I have is a solution with two projects, a forms project (the exe) and a class library (a dll). I have a reference to the class library from the forms project, I can access items from it and I'm convinced I'm doing it correctly. My question is, is it possible to access items on the exe from the dll project? For example, I'm passing in a form from the exe to the dll using a mutator method. This seems to work, but when I try to access any properties I've made on the form from a method in the dll, I don't see them on the intellisense list. Furthermore, I can't seem to set the object type to anything more specific that Form, or 'cast' it to the proper Form that lives in the exe. I've also tried to reference the exe project from the dll, but I get a circular reference error. I've pasted a code example below, any help you would be willing to provide would be greatly appreciated. I am happy to provide a compilable solution via email if it helps you, please email at [email protected] if interested. Thank you in advance!
C# |
Answers
Know the answer? Post it. Somebody with the same question will find it here.