namespace UITest
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void pictureBox2_Resize(object sender, EventArgs e)
{
pictureBox2.Left = (this.ClientSize.Width - pictureBox2.Width) / 13;
pictureBox2.Top = (this.ClientSize.Height - pictureBox2.Height) / 13;
}
}
}
l应用此代码。但是没有用我该怎么办?