There are 2 Files for you Form:
MyFormClass.cs here you can edit as you like, add Properties, change them, etc.
MyFormClass.designer.cs // auto generated, dont put stuff here
Put your custom code in the constructor after the InitializeComponent() call
public MyFormClass()
{
InitializeComponent();
// do it here
this.lblName.Top = 10;
this.lblFamily.Top = this.lblName.Top + this.lblName.Height + 15;
}
It is the 2nd half of the partial class definition, so you have acces to all the Properties.
File1:
namespace Test{
public partial class MyFormClass{
// add some code
}
}
File2:
namespace Test{
public partial class MyFormClass{
// add some code here
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…