Currently I am working with:
C#
Windows forms application
I currently have a problem specifying a domain for my foreach loop
basically I have the string literal of , for example, “TargetForm” and I need to “fetch/get” this TargetForm by name identification and drag it into my other project.
For example
Project A has foreach loop that finds the string and wants to do Application.OpenForms / or whatever works
Project B (GPC) has this form
Is there some way I can get that dynamically? Using any literal domain is not an option as many forms will be added or renamed, I need to get ALL forms in Project B no matter what the users/developers do and match that to the options I give the user in project A.
Any of this make any sense at all? I hope so, if not please help me help you.
Thanks in advance!
EDIT:
The usecase:
The primary project HAS a string value “NameOfTheFormIWantToGet”
The secondary project HAS two partial classes to build a form ( as is tradition )
The action of the matter is an iterator inside project A which uses a string literal to match for a Form object in project B, if there is a match between the string and the name of a form inside the B project, then this question can be considered answered. The rest is already history, it’s getting the domain “Look at B for forms” that I can’t figure out.
EDIT:
This link I found (after this problem was solved) explains pretty well how you can solve an assembly load target problem with code examples and step by step approach: http://www.chilkatsoft.com/p/p_502.asp
Following source searches all types in PrjB.exe and if its a Form it is opened.