public class Form1()
{
public Form1(){
var form = new NewForm( );
form.Show();
}
}
public class NewForm{
public NewForm(int left){
InitializeComponents();
this.ball.Left = left;
}
}
foreach (var ctl in form.Controls){
if(ctl.Name =="") ;//some stuff
if(ctl is PictureBox) ; //another stuff
// но зачем?
}
В любом случае можно обойтись get их пока не ограничивают