I have a general question.
I have a Form where I have some buttoncontrols and 3 textBoxes.
What I do now is to add a "TabControl" and a panel1 on the Form and then I put all the
other controls inside this panel on the "TabControl".
When I now compile the program, the compiler says that redefinitions is made like this:
private: System::Windows::Forms::TabControl^ tabControl1;
private: System::Windows::Forms::TabPage^ tabPage1;
private: System::Windows::Forms:: Panel^ panel1;
private: System::Windows::Forms::TabPage^ tabPage2;
private: System::Windows::Forms::TabControl^ tabControl1;
private: System::Windows::Forms::TabPage^ tabPage1;
private: System::Windows::Forms:: Panel^ panel1;
private: System::Windows::Forms::TabPage^ tabPage2;
If I take the "Duplicates"/redefinitions away above, the code will compile but now I wont see the Form in DesignView. There is an errormessage that says:
A circular control reference has been made. A control cannot be owned by or parented to itself.
I have noticed this problem before also but wonder why this is happening.