samedi 30 avril 2016

how to find a label is exist or not in Windows Forms panel

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");
        }

mean to say my else part is not working if the label is not exist.

Aucun commentaire:

Enregistrer un commentaire