公共系統。component model . IContainer components = null;
公共重寫void Dispose(bool disposing)
{
如果(處置& amp& amp(組件!= null)){
組件。dispose();
}
基地。Dispose(處置);
}
public void InitializeComponent()
{
this.components =新系統ComponentModel.Container()。
系統。component model . component resource manager resources =新系統。component model . component resource manager(type of(form 1));
this.timer1 =新系統。windows . forms . timer(this . components);
this.imageList1 =新系統。windows . forms . imagelist(this . components);
這個。suspend layout();
this.timer1。Enabled = true
this.timer1。區間= 1000;
this.timer1。Tick +=新系統。EventHandler(this . timer 1 _ Tick);
this.imageList1。ImageStream =((系統。(資源)。GetObject("imageList1。ImageStream "))));
this.imageList1。透明色=系統。繪圖.顏色.透明;
this.imageList1。Images.SetKeyName(0," 55 . jpg ");
this.imageList1。Images.SetKeyName(1," 1 . jpg ");
this.imageList1。Images.SetKeyName(2," 2 . jpg ");
this.imageList1。Images.SetKeyName(3," 3 . jpg ");
this.imageList1。Images.SetKeyName(4," 4 . jpg ");
this.imageList1。Images.SetKeyName(5," 5 . jpg ");
this.imageList1。Images.SetKeyName(6," 6 . jpg ");
this.imageList1。Images.SetKeyName(7," 7 . jpg ");
this.imageList1。Images.SetKeyName(8," 33 . jpg ");
this.imageList1。Images.SetKeyName(9," 53 . jpg ");
這個。自動縮放尺寸=新系統。圖紙. SizeF(6F,12F);
這個。AutoScaleMode =系統。windows . forms . autoscale mode . font;
這個。BackgroundImage =((系統。繪圖.圖片)(參考資料)。GetObject("$this。background image "))));
這個。BackgroundImageLayout = System。windows . forms . image layout . stretch;
這個。ClientSize =新系統。圖紙.尺寸(126,131);
這個。FormBorderStyle = System。windows . forms . form border style . none;
這個。name = " form 1 ";
這個。ShowInTaskbar = false
這個。StartPosition =系統。windows . forms . formstartposition . manual;
這個。TopMost = true
這個。新系統。windows . forms . mouse eventhandler(this。form 1 _ MouseDown);
這個。ResumeLayout(false);
}
公共系統。windows . forms . timer timer 1;
公共系統。windows . forms . imagelist imagelist 1;
}