Solution-level variable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created a solution for VB.NET Windows application with many projects in
it. How can I call a Form in a project from another project?
 
Aung said:
I've created a solution for VB.NET Windows application with many projects in
it. How can I call a Form in a project from another project?

Simple:
ProjectName.ClassName

Chris
 
Thank you, Chris.

My problem now is I want to call and open a Windows Form in Windows
application project from a Windows Form in Class Library project.

I can call and open a Form in Windows application project from the Class
Library project by using ProjectName.ClassName, as you said. But, in this
case, the Class Library project doesn't know the Windows application project.

Aung Thu.
 
You have to declare your form in a Class Libarary project. Then from
another project in the solution, you need to set a reference to the
Form Class library project. Then you should be able to show your from.
 

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

Back
Top