Input for WinForms | ComponentOne
Appearance and Styling / PictureBox
In This Topic
    PictureBox
    In This Topic

    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.

    The following image showcases styling applied to the PictureBox control.

    You can enrich the appearance of the PictureBox control, such as its backcolor, background image layout, border style etc by using BackColor, BorderStyle, and BackgroundImageLayout properties.

    C#
    Copy Code
    //Appearance and styling - Input 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");