1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

C# - ステータスバー(StatusStrip)のサンプル コードべた書き(Visual Studio不使用)

Last updated at Posted at 2021-02-27

目次: C# - Windows Formsでよく使うコントロールたち (Visual Studioなし環境向け) - Qiita

画面キャプチャ

image.png

テンプレ


using System;
using System.Drawing;
using System.Windows.Forms;

class StatusStripSample:Form
{
    ToolStripStatusLabel statusLabel;

    StatusStripSample()
    {
        var statusStrip = new StatusStrip();
        Controls.Add(statusStrip);
        
        statusStrip.Items.Add(statusLabel = new ToolStripStatusLabel(){
            Text = "This is a sample.",
        });
    }

    [STAThread]
    static void Main()
    {
        Application.Run(new StatusStripSample());
    }
}

参考サイト

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?