Groups | Blog | Home
all groups > dotnet windows forms > february 2007 >

dotnet windows forms : Accessing forms from different project


Dimsion
2/14/2007 9:49:54 AM
Hi everyone,

Does anyone know how i can access forms from different project. I have
multiple projects and i was wondering if it would be possible to access
those forms without adding it in it into the project itself.

Thanks!

Shaun C McDonnell
2/14/2007 2:29:18 PM
Dimsion,

You could compile the forms you want reuse into a .NET Assembly (.dll or
..exe) and then add the respective assembly as a reference to any project you
wish to use the forms for.

Shaun McDonnell

[quoted text, click to view]
RobinS
2/14/2007 10:58:19 PM
If the project is in the same solution, couldn't you set up a reference to
projectB in projectA, and then access the form like projectB.myForm.Show()
?

Robin S.
--------------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button