準備
(なし)
デザイン
1. フォーム (Form1) にボタン (button1) を配置します。
2. フォーム (Form1) にリストボックス (listBox1) を配置します。
サンプルコード (C#)
// 名前空間の追加
// (なし)
// コード
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Add(SystemInformation.PrimaryMonitorSize.Height);
listBox1.Items.Add(SystemInformation.WorkingArea.Height);
}
解説
画面全体の高さとワーキングエリアの高さを取得すれば、その差がタスクバーの高さとなります。
結果

動作確認環境
Visual Studio 2015 Professional (C# 6.0)