Csharp/C#教程:WinForm实现自定义右下角提示效果的方法分享

本文实例讲述了WinForm实现自定义右下角提示效果的方法。分享给大家供大家参考。具体实现方法如下:

usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; namespaceIcoFlickerApp { publicpartialclassFrmMain:Form { publicFrmMain() { InitializeComponent(); Rectanglerectangle=Screen.AllScreens[0].WorkingArea; this.StartPosition=FormStartPosition.Manual; this.Location=newPoint(rectangle.Width-this.Width,rectangle.Height); this.TopMost=true; System.Threading.Threadthread=newSystem.Threading.Thread(()=> { while(this.Top>=rectangle.Height-this.Height) { this.Invoke(newMethodInvoker(delegate { this.Top=this.Top-1; System.Threading.Thread.Sleep(1); Application.DoEvents(); })); } }); thread.Start(); } } }

希望本文所述对大家的C#程序设计有所帮助。

您可能感兴趣的文章:WinForm实现窗体最大化并遮盖任务栏的方法C#实现WinForm禁止最大化、最小化、双击标题栏、双击图标等操作的方法Winform实现鼠标可穿透的窗体镂空效果Winform窗体效果实例分析WinForm实现仿视频播放器左下角滚动新闻效果的方法C#实现winform渐变效果的方法WinForm实现同时让两个窗体有激活效果的特效实例C#WinForm实现Win7Aero透明效果代码winform下实现win7Aero磨砂效果实现代码用C#Winform做出全透明的磨砂玻璃窗体效果代码WinForm实现状态栏跑马灯效果的方法示例

标签: orm 方法 rm 自定义

C#实现清空回收站的方法

C++实现的O(n)复杂度内查找第K大数算法示例

上述就是C#学习教程:WinForm实现自定义右下角提示效果的方法分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/cdevelopment/906757.html

(0)
上一篇 2021年10月24日
下一篇 2021年10月24日

精彩推荐