How to show form in other project in the same solution

  • Thread starter Thammarat charoenchai.
  • 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
 
K

kimiraikkonen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top