準備
(なし)
デザイン
1. フォーム (Form1) にボタン (button1) を配置します。
サンプルコード (C#)
// 名前空間の追加
// (なし)
// コード
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("タスクバーにアイコンを表示", "タスクバー"
, MessageBoxButtons.OK
, MessageBoxIcon.Information
, MessageBoxDefaultButton.Button1
, MessageBoxOptions.DefaultDesktopOnly);
}
解説
メッセージボックスダイアログのアイコンをタスクバーに表示しています。
結果

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