I have an app that runs in the background, and adds an icon to the system
tray. When events occur, I bring up a small window in the bottom right
(sort of like msn messenger alert) that I want to appear just above the
taskbar. I have:
Screen screen = Screen.PrimaryScreen;
int w = screen.WorkingArea.Width;
int h = screen.WorkingArea.Height;
this.Left = w - targetWidth + 1; //target width id the width of the form.
this.Top = h -1;
this.Show();
The form appears roughly correct, but the top of the form is halfway down
the taskbar. I'm wanting the top of my form to start just above the taskbar.
(It will "scroll up" automatically, a feature which is working fine.) I
think this is because I have my taskbar height set to be a "double row". It
looks like the workingArea assumes the taskbar is only one row? How can I
know how many rows are specified for the taskbar, and how high they are, or
am I doing this wrong?
Thanks!
-D