Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
まず、現在のディスプレイの画像を表示します。
(System.Windows.Forms.)Button のイメージがある程度正しく配置されていることがわかりますが、テキストには正しい左パディングがありません。
ボタンのテキストに左から約 30px のパディングを与えるにはどうすればよいですか? ボタンのパディング自体を変更しようとしましたが、テキストと画像のパディングの両方が変更されます。
ありがとう、
〜Tgys
TextImageRelationプロパティを設定してみてください:
TextImageRelation
button1.TextImageRelation = TextImageRelation.ImageBeforeText;