Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a VB .NET Windows application (solution) that contains 2 projects. How can I display a form that is in Project2 from a form that is in Project1? I thought I could reference the project name (which would also be it's namespace name) but it keeps telling me the name is undefined. Running form1 in Project1...trying to show ReportForm that is in Project2. I tried:

 

Dim newform as New ReportForm()

 

Also tried:

Dim newform as New Project2.ReportForm()

 

I guess I'm missing a step somewhere???

 

Thanks!

Posted

You have to remember that a form is just a class, and like any other class, you can't use it in another class unless it's referenced or in the same folder.

 

So basically what I'm saying is, you need to reference the form.

Gamer extraordinaire. Programmer wannabe.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...