if (panel1.Contains(label1)) // if label1 is exist it shows label is exist if label2 is not exist then mean else part... how to identify it is not exist.
{
MessageBox.Show("Label 1 is Exist");
}
ラベルが存在しない場合は、他の部分は機能していません。ラベルが存在するかどうかはWindowsフォームパネルにあります
あなたが望むものを見つけようとするでしょう –
例で説明することができます –