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

首頁 > 編程 > C# > 正文

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

2019-10-29 21:39:13
字體:
來源:轉載
供稿:網友

這篇文章主要介紹了WinForm實現自定義右下角提示效果的方法,涉及WinForm自定義提示效果的實現方法,具有一定參考借鑒價值,需要的朋友可以參考下

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

  1. using System; 
  2. using System.Collections.Generic; 
  3. using System.ComponentModel; 
  4. using System.Data; 
  5. using System.Drawing; 
  6. using System.Linq; 
  7. using System.Text; 
  8. using System.Windows.Forms; 
  9. namespace IcoFlickerApp 
  10. public partial class FrmMain : Form 
  11. public FrmMain() 
  12. InitializeComponent(); 
  13. Rectangle rectangle = Screen.AllScreens[0].WorkingArea; 
  14. this.StartPosition = FormStartPosition.Manual; 
  15. this.Location = new Point(rectangle.Width - this.Width, rectangle.Height); 
  16. this.TopMost = true
  17. System.Threading.Thread thread = new System.Threading.Thread(() => 
  18. while (this.Top >= rectangle.Height - this.Height) 
  19. this.Invoke(new MethodInvoker(delegate 
  20. this.Top = this.Top - 1; 
  21. System.Threading.Thread.Sleep(1); 
  22. Application.DoEvents(); 
  23. })); 
  24. }); 
  25. thread.Start(); 

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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 高平市| 定远县| 宜都市| 桐城市| 小金县| 洛宁县| 曲周县| 吉安县| 岳池县| 三穗县| 中西区| 彩票| 岫岩| 崇礼县| 兴城市| 新化县| 庆元县| 盘锦市| 灵丘县| 峨眉山市| 铜鼓县| 汉寿县| 宁海县| 泸定县| 河北区| 宁化县| 化德县| 德清县| 济阳县| 漠河县| 五大连池市| 武功县| 石渠县| 奉新县| 赤峰市| 奉节县| 彭水| 肥西县| 盐城市| 鄄城县| 贵溪市|