panel
コントロール付きのがあります。コントロールはとbuttons
ですprogressbars
。ボタンだけをに追加したいのですがlist
、どうすればよいですか?
foreach (Control item in panel1.Controls)
{
//if (item.GetType() == typeof(ButtonControl)) //i tried this too...
if ((item is ButtonControl) && (item.Tag.ToString() == "It's not important"))
{
panel1.BtnList.Add(item);
}
}
これがクラスから継承された私ButtonControl
自身のコントロールです。Button