C#窗体显示

public partial class Login : Form
{
Timer T;
public Login()
{
InitializeComponent();
T = new Timer();
T.Interval =1;
T.Tick += new EventHandler(timer1_Tick);
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
}

void timer1_Tick(object sender, EventArgs e)
{
if (this.Size.Width < 1024 || this.Size.Height < 768)
{
this.Size = new Size(this.Size.Width + 100, this.Height + 80);
this.CenterToScreen();
}
}

private void Login_Load(object sender, EventArgs e)
{
T.Start();
}


}

C#窗体显示,布布扣,bubuko.com

C#窗体显示

上一篇:PE破解win2008登录密码


下一篇:利用LdrLoadLibrary加载与隐藏DLL (绕过API HOOK LoadLibrary)