本文实例讲述了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#程序设计有所帮助。
如对本文有疑问, 点击进行留言回复!!
C# 对PDF文档加密、解密(基于Spire.Cloud.SDK for .NET)
Unity通用泛型单例设计模式(普通型和继承自MonoBehaviour)
网友评论