Show a winform over the notification area

后端 未结 3 427
半阙折子戏
半阙折子戏 2020-12-19 09:40

I want to show a winform in the very right down corner just above the system tray,

How do I do that? Here is my code:

public static void Noti         


        
3条回答
  •  星月不相逢
    2020-12-19 09:56

    You forgot this one:

            fm.StartPosition = FormStartPosition.Manual;
    

    What you'll have to work on next is putting the taskbar at, say, the left side of the screen and running the code on a machine that has the video DPI setting at a different value (like 125). You can only position the form accurately in its Load event. Don't set the client size.

提交回复
热议问题