send this key as refrence

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a form name Form1 i want to create a copy of Form2 which know th
refrence of Form1.

example:
private: System::Void button1_Click(System::Object * sender,
System::EventArgs * e)
{
Form2 * copy = new Form2(this);
copy ->ShowDialog();
}

constructure of Form2 is like.. ( but i get errors ??? )

public:
dialog(Form1 *const refree)
{
InitializeComponent();
}
 
if i remove this and overload constructure it works... but i have to reach
openers methods ???

there are lots of error

Form2.h(28): error C2039: 'Form1' : is not a member of 'deneme'


deneme is my namespace which is same for form1 and form2
 
i got it .. form2 defined before form1 cause of it form2 don't know form1...

þualt i use partial or someting else...
 
Back
Top