salut,
je veux changer la location du label a partir d'un autre form , mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
Form1 f1 = new Form1();
f1.label1.Location.X=220;      
f1.label1.Location.Y = 328;
this.Hide();
f1.ShowDialog();
et l'erreur est :
System.Windows.Forms.Control.Location' because it is not a variable
merci