国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C# > 正文

WinForm實現自定義右下角提示效果的方法

2020-01-24 01:30:37
字體:
來源:轉載
供稿:網友

本文實例講述了WinForm實現自定義右下角提示效果的方法。分享給大家供大家參考。具體實現方法如下:

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace IcoFlickerApp{ public partial class FrmMain : Form {  public FrmMain()  {   InitializeComponent();   Rectangle rectangle = Screen.AllScreens[0].WorkingArea;   this.StartPosition = FormStartPosition.Manual;   this.Location = new Point(rectangle.Width - this.Width, rectangle.Height);   this.TopMost = true;   System.Threading.Thread thread = new System.Threading.Thread(() =>   {    while (this.Top >= rectangle.Height - this.Height)    {     this.Invoke(new MethodInvoker(delegate     {      this.Top = this.Top - 1;      System.Threading.Thread.Sleep(1);      Application.DoEvents();     }));    }   });   thread.Start();  } }}

希望本文所述對大家的C#程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 彰化县| 宜兴市| 普安县| 汶上县| 镇沅| 黎川县| 科技| 治多县| 卢氏县| 长兴县| 瓦房店市| 阳信县| 平顺县| 江陵县| 罗江县| 镶黄旗| 台山市| 桐庐县| 台山市| 上栗县| 佛坪县| 响水县| 饶平县| 漳州市| 黄浦区| 军事| 陕西省| 玛纳斯县| 田东县| 乌拉特前旗| 全南县| 黄石市| 壤塘县| 清河县| 大邑县| 黄梅县| 满洲里市| 饶阳县| 建水县| 南乐县| 措勤县|