C# Builder 实现POP3信箱的监视__教程 |
|
日期:2007-5-20 1:21:23 人气:178 [大 中 小] |
|
|
|
/// </summary> protected override void Dispose (bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
#region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WinForm1)); this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer2 = new System.Windows.Forms.Timer(this.components); this.timer3 = new System.Windows.Forms.Timer(this.components); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.SuspendLayout(); // // timer1 // this.timer1.Interval = 10; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // timer2 // this.timer2.Interval = 10; this.timer2.Tick += new System.EventHandler(this.timer2_Tick); // // timer3 // this.timer3.Interval = 10; this.timer3.Tick += new System.EventHandler(this.timer3_Tick); // // linkLabel1 // this.linkLabel1.AutoSize = true; this.linkLabel1.BackColor = System.Drawing.Color.WhiteSmoke; this.linkLabel1.Location = new System.Drawing.Point(56, 56); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(79, 17); this.linkLabel1.TabIndex = 0; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "您有新邮件!"; // // WinForm1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackColor = System.Drawing.SystemColors.Info; this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.ClientSize = new System.Drawing.Size(194, 122); this.Controls.Add(this.linkLabel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "WinForm1"; this.ShowInTaskbar = false; this.Text = "信息提示"; this.TopMost = true; this.Load += new System.EventHandler(this.WinForm1_Load); this.Activated += new System.EventHandler(this.WinForm1_Activated); this.ResumeLayout(false); } #endregion
private void WinForm1_Load(object sender, System.EventArgs e) { Screen[] screens = Screen.AllScreens; Screen screen = screens[0]; this.Location = new Point(screen.WorkingArea.Width - 200, screen.WorkingArea.Height - 30); this.timer2.Interval = 5000; }
private void ScrollUp() { if(Height < 122) { this.Height += 3; this.Location = new Point(this.Location.X, this.Location.Y - 3); } else { this.timer1.Enabled = false; this.timer2.Enabled = true; } }
|
|
出处:本站原创 作者:佚名 |
|
|