Display Scale an image to fit PictureBox in vb.net

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3726
    John Coder
    Member

    Hi
    i want to display image in the picture box fit to its size. means i need to scale image to fit picturebox control. i am using vb.net.

    have you an idea…
    Thanks

    #3732

    Hi john

    You can set the SizeMode property of the PictureBox to PictureBoxSizeMode.Zoom. This enables to display the image fit to picturebox.

    [code title=””] PictureBox1.SizeMode = PictureBoxSizeMode.Zoom[/code]

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.