Wednesday, April 2, 2008

Very easy way to get taskbar height in C#

Easy way to get taskbar height in C# ...

...

private void button1_Click(object sender, EventArgs e)
{
int nTaskBarHeight = Screen.PrimaryScreen.Bounds.Bottom - Screen.PrimaryScreen.WorkingArea.Bottom;
MessageBox.Show(nTaskBarHeight.ToString());
}

...

0 comments: