Taskbar location
<p>How can i detect where the taskbar is located? I need to know for displaying my notification in the right corner. Thanks</p>

<p>Edit:
Thank you Hans Passant. I used that with this to get location. I hope is ok.</p>

<pre><code>GetTaskbarLocation(TaskbarPosition.GetTaskbarPosition());

private void GetTaskbarLocation(Rectangle rc)
{
    if (rc.X == rc.Y)
    {
        if (rc.Right &lt; rc.Bottom)
            taskbarLocation = TaskbarLocation.Left;
        if (rc.Right &gt; rc.Bottom)
            taskbarLocation = TaskbarLocation.Top;
    }
    if (rc.X &gt; rc.Y)
        taskbarLocation = TaskbarLocation.Right;
    if (rc.X &lt; rc.Y)
        taskbarLocation = TaskbarLocation.Bottom;
}
</code></pre>
