1
2

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 1 year has passed since last update.

C#のWindowsフォームで直線、四角形を配置する

Last updated at Posted at 2023-02-08

1. はじめに

  • Visual StudioのツールボックスにLineSquareのコントロールがなく困った
  • 直線以外に四角形のコントロールも配置したい

2. 動作イメージ

  • Laelコントロールで直線、四角を配置する
    image.png

3. 作成手順

3.1. Labelコントロールを配置する

image.png

3.2. Textプロパティを空白にする

image.png

3.3. AutoSizeプロパティをFalseにする

image.png

3.4. BackColorプロパティを設定する

  • 直線, 四角形の色を設定する
    image.png

3.5. Sizeプロパティを設定する

  • 直線, 四角形の長さ, 高さを調整する
    image.png

4. 参考文献

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?