Avoiding circular reference between two forms in separate projects?

K

Kylarean

I currently have a setup that looks like:

Project1
-- Form1


Project2
-- Form2


Defined in Form2 there is a button that when clicked would open Form1.
This worked just fine.

Now there is a requirement that Form1 gets a button that can open Form2.
This creates a circular reference. How can I get around this?
 
K

Kevin Spencer

Each Project is not a Form, but a class. The application creates an instance
of the class when you run it. You can create multiple instances of a class.
Therefore, you don't open the first form from the second form, if the second
form was opened by the first. Instead, you open a new instance of the first
form's class.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

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