April 6th, 2014, 04:18 AM
Reference a CLASS
I have a problem switching back and forth between 2 classes.
If I use the following code in Class1, I have no problem activating Class2.
(Dim myClass2 As New Class2)
However, if I put a similar line in Class2,
(Dim myClass1 As New Class1)
it causes a looping condition that crashes with a stack fault.
I think what I need to do is not declare a new class1 inside class2, and instead pass in a reference to my existing class1. The problem is I don't know how to code that.
If anyone can offer any example of how that's done I sure would appreciate it.
Visual Basic Express Edition 2010
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!