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. picturebox problem

picturebox problem

Scheduled Pinned Locked Moved C#
questionhelp
5 Posts 4 Posters 0 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.
  • N Offline
    N Offline
    Nine_
    wrote on last edited by
    #1

    I have load an image to a picture box like here: MypicBox.Image=Image.FileName("D/foto1.jpeg") the pic is now displaying in the box, but how can I clear it now? thanks

    L I H 3 Replies Last reply
    0
    • N Nine_

      I have load an image to a picture box like here: MypicBox.Image=Image.FileName("D/foto1.jpeg") the pic is now displaying in the box, but how can I clear it now? thanks

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      with the magical line MypicBox.Image=null; :)

      Luc Pattyn [My Articles] [Forum Guidelines]

      N 1 Reply Last reply
      0
      • L Luc Pattyn

        with the magical line MypicBox.Image=null; :)

        Luc Pattyn [My Articles] [Forum Guidelines]

        N Offline
        N Offline
        Nine_
        wrote on last edited by
        #3

        thanks

        1 Reply Last reply
        0
        • N Nine_

          I have load an image to a picture box like here: MypicBox.Image=Image.FileName("D/foto1.jpeg") the pic is now displaying in the box, but how can I clear it now? thanks

          I Offline
          I Offline
          imagic
          wrote on last edited by
          #4

          MypicBox.Image=null Is it right ?

          imagic

          1 Reply Last reply
          0
          • N Nine_

            I have load an image to a picture box like here: MypicBox.Image=Image.FileName("D/foto1.jpeg") the pic is now displaying in the box, but how can I clear it now? thanks

            H Offline
            H Offline
            Hesham Yassin
            wrote on last edited by
            #5

            :sigh:insert the default image to the picturebox or zero it : pictureBox01.Image = null;

            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