软件悬浮窗的隐藏

刚开始做的时候觉得好像挺难的,其实是自己想复杂了,所谓的隐藏,其隐含之意就是,看不到的地方。

panel p = new panel();

p.Location = new Point(Screen.PrimaryScreen.Bounds.Width + this.Width, this.height);

等到让窗体显示的时候,再重新定位在正确的位置即可。

posted @ 2016-07-21 20:21  寒夜美美  阅读(571)  评论(0编辑  收藏  举报