创建通知框

问题描述:

如何在任务栏中显示框?在表单中,我添加了该图像,但是如何显示在右下方的任务栏中?创建通知框

这样的:

enter image description here

例子:

enter image description here

你可能想看看NotifyIcon Class,因为你在说话关于任务栏。

为了您的申报书,你将针对主屏幕右下角:

事情是这样的:

notifyForm.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - notifyForm.Width, 
           Screen.PrimaryScreen.WorkingArea.Height - notifyForm.Height); 

确保您的通知具有以下属性集:

notifyForm.StartPosition = FormStartPosition.Manual; 
+0

非常感谢=) – jolly

只需设置其右下角位置......假设是在通知区域是为每个用户..

+0

如何设置位置? – jolly

+0

这篇文章似乎有一个体面的包装类给你的信息: http://winsharp93.wordpress.com/2009/06/29/find-out-size-and-position-of-the-taskbar/(顺便说一句,我在这里找到链接:http://stackoverflow.com/questions/1264406/how-do-i-get-the-taskbars-position-and-size) –