0

toolstripstatuslabel では、以下のように画像を追加して表示しています。

ケース 1: 画像リストのサイズを設定する [動作しない]

ケース 2: ラベルのサイズを設定する[動作しない]

上記のどちらの場合も、サイズが反映されません。

StatusStrip statusStrip = new StatusStrip();
//Set the size of the status bar
statusStrip.AutoSize = false;

ImageList imgList = new ImageList(); 

...Add resource images to image list

imgList.ImageSize = new System.Drawing.Size(50, 50);

//Set the images on the status strip
ToolStripStatusLabel add = new ToolStripStatusLabel();
add.Image = jobImgList.Images[0];

//Set auto size to false, so specify the size
add.AutoSize = false;
add.Size = new System.Drawing.Size(50, 50);

statusStrip.Items.Add(add);

AutoSize を false に設定する以外に変更が必要なプロパティはありますか?

4

1 に答える 1