Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. picture box

picture box

Scheduled Pinned Locked Moved C#
helptutorialquestion
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sathishtl007
    wrote on last edited by
    #1

    how to select the picture box on run time and how to resize this picture box?please help

    T 1 Reply Last reply
    0
    • S sathishtl007

      how to select the picture box on run time and how to resize this picture box?please help

      T Offline
      T Offline
      Tamimi Code
      wrote on last edited by
      #2

      hi pictureBox1.Image = Image.FromFile("1.jpg"); pictureBox1.Size = new Size(width,height); // hope i help you with resizing.....:)

      Tamimi - Code

      S 1 Reply Last reply
      0
      • T Tamimi Code

        hi pictureBox1.Image = Image.FromFile("1.jpg"); pictureBox1.Size = new Size(width,height); // hope i help you with resizing.....:)

        Tamimi - Code

        S Offline
        S Offline
        sathishtl007
        wrote on last edited by
        #3

        thanks.. but i want select the border and then resize that image

        A 1 Reply Last reply
        0
        • S sathishtl007

          thanks.. but i want select the border and then resize that image

          A Offline
          A Offline
          Amar Chaudhary
          wrote on last edited by
          #4

          use a panel(base panel for the size you feel max for your streching) in it put three panels and two splitter controls as following p s p s p dock them accordingly and you have it p=> panel s=> splitter :):)

          It is Good to be Important but! it is more Important to be Good

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups