stewarts Posted June 3, 2003 Posted June 3, 2003 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! Quote
wyrd Posted June 3, 2003 Posted June 3, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.