Bonjour,

J'ai un bug généré par une référence circulaire sur un control checkBox qui est contenu dans un control tabPage:

Avertissement signalée: Une référence de contrôle circulaire a été créée. Un contrôle ne peut pas être propriétaire de lui-même ou être son propre parent.

et impossibilité de visualiser ma Form avec le Designer

Voici mon code dans le fichier *.h:
...
#pragma region Windows Form Designer generated code
/// <summary>
/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
/// le contenu de cette méthode avec l'éditeur de code.
/// </summary>
void InitializeComponent(void)
{
this->button1 = (gcnew System::Windows::Forms::Button());
this->button2 = (gcnew System::Windows::Forms::Button());
this->button3 = (gcnew System::Windows::Forms::Button());
this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
this->label1 = (gcnew System::Windows::Forms::Label());
this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
this->maskedTextBox1 = (gcnew System::Windows::Forms::MaskedTextBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
this->tabControl1->SuspendLayout();
this->tabPage1->SuspendLayout();
this->SuspendLayout();
...
//
// tabPage1
//
this->tabPage1->Controls->Add(this->checkBox1);
this->tabPage1->Location = System:rawing:oint(4, 22);
this->tabPage1->Name = L"tabPage1";
this->tabPage1->Padding = System::Windows::Forms:adding(3);
this->tabPage1->Size = System:rawing::Size(1066, 302);
this->tabPage1->TabIndex = 0;
this->tabPage1->Text = L"Choix des mises";
this->tabPage1->UseVisualStyleBackColor = true;
...
//
// checkBox1
//
this->checkBox1->AutoSize = true;
this->checkBox1->Location = System:rawing:oint(25, 20);
this->checkBox1->Name = L"checkBox1";
this->checkBox1->Size = System:rawing::Size(80, 17);
this->checkBox1->TabIndex = 0;
this->checkBox1->Text = L"checkBox1";
this->checkBox1->UseVisualStyleBackColor = true;
...
Et en supprimant la ligne ayant le code
this->tabPage1->Controls->Add(this->checkBox1);
l'avertissement disparaît et je peux visualiser ma form dans le Designer, mais sans pouvoir voir le control checkBox

Comment résoudre cet avertissement et pouvoir voir mon checkBox correctement ?

Merci d'avance