J
Jaime Lucci
Hi, how've you been?
I'm trying to do a .dll that would be able to manage forms from an
independient project. The dll has a method that receive a parameter which is
the form I want to manage. The problem is that I have to pass the instancied
form as parameter instead of its name. When I have to manage many forms, it
will be necessary to instance all forms, and it minus the performance of my
project.
What I do is:
myclass.mymethod(new form1).
myclass.mymethod(new form2).
myclass.mymethod(new form3).
....
myclass.mymethod(new formN).
How can I do to prevent this and pass as a parameter only the form name
instead of the instanced form? If I pass the class name I have an error.
I hope you understand my problem and my english.
Thanks.
Jaime Lucci
(e-mail address removed)
Salta, Argentina
I'm trying to do a .dll that would be able to manage forms from an
independient project. The dll has a method that receive a parameter which is
the form I want to manage. The problem is that I have to pass the instancied
form as parameter instead of its name. When I have to manage many forms, it
will be necessary to instance all forms, and it minus the performance of my
project.
What I do is:
myclass.mymethod(new form1).
myclass.mymethod(new form2).
myclass.mymethod(new form3).
....
myclass.mymethod(new formN).
How can I do to prevent this and pass as a parameter only the form name
instead of the instanced form? If I pass the class name I have an error.
I hope you understand my problem and my english.
Thanks.
Jaime Lucci
(e-mail address removed)
Salta, Argentina