How to show form in other project in the same solution

  • Thread starter Thread starter Thammarat charoenchai.
  • Start date Start date
T

Thammarat charoenchai.

hi. everyone.

I'm create multiple projects in 1 solution.

How can to show form in others projects from default project

thanks for you help & sorry about my english
 
hi. everyone.

I'm create multiple projects in 1 solution.

How can to show form in others projects from default project

thanks for you help & sorry about my english

Well, assuming you have default startup project named
"WindowsApplication1" and you added a second project into "same"
solution named "WindowsApplication2". The steps you can take:

1-Right Click "WindowsApplication1" -> "Add Reference" -> Project tab
2-Select "WindowsApplication2" and click OK.

Now you're ready to show the form in "WindowsApplication2" which is in
the same solution, go to your startup(default)
project(WindowsApplication1) and call the form of WindowsApplication2
like this:

' -----------------
Dim instance As New WindowsApplication2.Form1
instance.Show()
' ----------------

And it's done.

Hope this helps,

Onur Güzel
 
Back
Top