WinForm實現(xiàn)自定義右下角提示效果的方法
更新時間:2015年08月22日 17:05:35 作者:我心依舊
這篇文章主要介紹了WinForm實現(xiàn)自定義右下角提示效果的方法,涉及WinForm自定義提示效果的實現(xiàn)方法,具有一定參考借鑒價值,需要的朋友可以參考下
本文實例講述了WinForm實現(xiàn)自定義右下角提示效果的方法。分享給大家供大家參考。具體實現(xiàn)方法如下:
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#程序設(shè)計有所幫助。
您可能感興趣的文章:
- c# Winform自定義控件-儀表盤功能
- winform實現(xiàn)可拖動的自定義Label控件
- C#中Winform 實現(xiàn)Ajax效果自定義按鈕
- C# winform自定義翻頁控件詳解
- C# Winform使用擴展方法實現(xiàn)自定義富文本框(RichTextBox)字體顏色
- C# WinForm中實現(xiàn)快捷鍵自定義設(shè)置實例
- WinForm自定義函數(shù)FindControl實現(xiàn)按名稱查找控件
- WinForm自定義控件應(yīng)用實例
- 解決C# winForm自定義鼠標樣式的兩種實現(xiàn)方法詳解
- .Net WInform開發(fā)筆記(三)談?wù)勛灾瓶丶?自定義控件)
- Winform應(yīng)用程序如何使用自定義的鼠標圖片
相關(guān)文章
C#執(zhí)行表達式樹(Expression Tree)的具體使用
本文將深入探討表達式樹的基本概念、創(chuàng)建方法、修改和刪除節(jié)點、查詢和遍歷技巧以及在C#中的應(yīng)用示例,具有一定的參考價值,感興趣的可以了解一下2024-03-03vscode設(shè)置Fira_Code字體及改變編輯器字體、背景顏色的代碼詳解
這篇文章主要介紹了vscode設(shè)置Fira_Code字體及改變編輯器字體、背景顏色,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-08-08