open forms from different project

  • Thread starter Thread starter salih ataoz
  • Start date Start date
S

salih ataoz

i have a solution name general
and there are two project in it
1. General
frmFirst
btnOpen
2. Second
frmOpen

My solutions startup project is general and my startup
form is frmFirst
and i have a button at frmFirst named btnOpen
when i click at btnOpen i want to open second projects
frmOpen form

thanks salih
 
salih ataoz said:
i have a solution name general
and there are two project in it
1. General
frmFirst
btnOpen
2. Second
frmOpen

My solutions startup project is general and my startup
form is frmFirst
and i have a button at frmFirst named btnOpen
when i click at btnOpen i want to open second projects
frmOpen form

If the second project is a class library, set a reference to it from the
General project. In "General", you can then use the items in the library.
 
* "salih ataoz said:
i have a solution name general
and there are two project in it
1. General
frmFirst
btnOpen
2. Second
frmOpen

My solutions startup project is general and my startup
form is frmFirst
and i have a button at frmFirst named btnOpen
when i click at btnOpen i want to open second projects
frmOpen form

Add a reference to the 2nd project, then use something like this:

\\\
Dim x As New ClassLibrary1.Form1()
x.Show()
///

Notice that the type of the 2nd project must be class library.
 
Back
Top