2011-11-21 66 views
2

如何在任務欄中顯示框?在表單中,我添加了該圖像,但是如何顯示在右下方的任務欄中?創建通知框

這樣的:

enter image description here

例子:

enter image description here

回答

2

你可能想看看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

只需設置其右下角位置......假設是在通知區域是爲每個用戶..

+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) –