Input for WinForms
PictureBox
外観とスタイル設定 > PictureBox

Input provides various properties for customizing the appearance and styling the Input PictureBox control, so that you can generate the control as per your requirement and change the look and feel of the application you are creating.

You can enrich the appearance of the PictureBox control, such as its backcolor, background image layout, border style etc.

C#
コードのコピー
//PictureBoxの外観とスタイル設定
pictureBox.BackColor = System.Drawing.SystemColors.Window;
pictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
pictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
pictureBox.Image = Image.FromFile(@"resources\icons8-female.png");