2017-07-03 5 views
0

ボタン上のアイコンを小さくしようとしていますが、どのようにボタンをクリックするかわかりません。winformsアプリケーションのボタンイメージサイズを変更する

enter image description here

画像のサイズがグレー表示されています。

enter image description here

この問題を解決するためにどのように任意のアイデア?

あなたが Imageのサイズを変更してから Buttons画像として設定する必要があります

答えて

1

// where 'MyImage' is the Image to display on the Button 
this.Button1.Image = (Image)(new Bitmap(MyImage, new Size(32,32))); 
+0

パーフェクト!ありがとう –

関連する問題