How to determine where the taskbar is located? I need to know how to show my notification in the right corner. Thanks
Edit: Thank you, Hans Passant. I used this to get a place. I hope everything is in order.
GetTaskbarLocation(TaskbarPosition.GetTaskbarPosition()); private void GetTaskbarLocation(Rectangle rc) { if (rc.X == rc.Y) { if (rc.Right < rc.Bottom) taskbarLocation = TaskbarLocation.Left; if (rc.Right > rc.Bottom) taskbarLocation = TaskbarLocation.Top; } if (rc.X > rc.Y) taskbarLocation = TaskbarLocation.Right; if (rc.X < rc.Y) taskbarLocation = TaskbarLocation.Bottom; }
andySF
source share