Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a form in class library (dll) from an exe

Status
Not open for further replies.

153

Programmer
Mar 16, 2003
25
ID
Hello all!

I just created an project with form(name : frmimport) as a class library (dll). Then I create a new project as an windows application (exe).
The problem is that I need to call frmimport (from class library that had been create) from my new project (windows application project).

Do anyone know how can I do that???
Thanks.


 
MAke a public function in your DLL that does what you want. It should be visible from your main project. You can even get it to return a complete form.
 
Thanks Mick for your reply,

But there something that I forgot. I want to call the form in dll by code not add the dll as reference.

So the steps (in my mind) is that I need to call the dll, then call the function in that dll to show the form (frmimport).

But first I need to know how I should tell in the function that I want to show the form (frmimport) as ownedform. Then how I should tell the program to call that function from dll.

(some code maybe more clearly - sorry just a newbie in .Net).


 
Hello...

Can Anyone help me :(

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top