Avoiding circular reference between two forms in separate projects?

  • Thread starter Thread starter Kylarean
  • Start date Start date
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?
 
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
 
Back
Top