110,533
社区成员
发帖
与我相关
我的任务
分享
foreach(Control ctrl in (sender as PictureBox).Parent.Controls)
{
if(ctrl is Label)
OtherForm.SetData(ctrl as Label);
}
private void pictureBox1_Click(object sender, EventArgs e)
{
foreach(Control c in panel1.Controls )
{
if(c is Label)
{
MessageBox.Show(c.Text);
}
}
}