Results 1 to 4 of 4

Thread: [RESOLVED] How to put a picture on a Form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2025
    Posts
    178

    Resolved [RESOLVED] How to put a picture on a Form

    Hi, I've got a Form project and I need to import a picture, company logo, but there appears to be no way to do it like with VBA.

    There also does not seem to be a way to generate icons. If there is it would be nice to know where it is.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,978

    Re: How to put a picture on a Form

    Use the Form’s BackGroundImage, or put your picture in a PictureBox control if you want to display a smaller picture

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,978

    Re: How to put a picture on a Form

    It’s as easy as…

    Form1.BackGroundImage= New Bitmap(“file path”)
    Or…
    PivtureBox1.Image = New Bitmap(“file path”)

    Or you can do it in your Form or PictureBox’ properties window at design time

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2025
    Posts
    178

    Re: How to put a picture on a Form

    Quote Originally Posted by .paul. View Post
    It’s as easy as…

    Form1.BackGroundImage= New Bitmap(“file path”)
    Or…
    PivtureBox1.Image = New Bitmap(“file path”)

    Or you can do it in your Form or PictureBox’ properties window at design time
    Thanks Guys, exactly what I was looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width