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. Problem with a PictureBox control. [modified]

Problem with a PictureBox control. [modified]

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 3 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.
  • A Offline
    A Offline
    Ankit Rajpoot
    wrote on last edited by
    #1

    Hello everybody, My application has a picturebox control. Now what I want is to move the source image file (to a different directory) without clearing the picture box. Any suggestions? Thanks in advance.

    Excuse me for buttin' in, but I'm interrupt driven.

    modified on Monday, June 1, 2009 9:21 AM

    S L 2 Replies Last reply
    0
    • A Ankit Rajpoot

      Hello everybody, My application has a picturebox control. Now what I want is to move the source image file (to a different directory) without clearing the picture box. Any suggestions? Thanks in advance.

      Excuse me for buttin' in, but I'm interrupt driven.

      modified on Monday, June 1, 2009 9:21 AM

      S Offline
      S Offline
      Satish Pai
      wrote on last edited by
      #2

      Hi You want to move the picture box ?

      A 1 Reply Last reply
      0
      • S Satish Pai

        Hi You want to move the picture box ?

        A Offline
        A Offline
        Ankit Rajpoot
        wrote on last edited by
        #3

        No, I don't want to move the picturebox, I want to move the image file (the file from which the image into the picturebox was loaded).

        Excuse me for buttin' in, but I'm interrupt driven.

        1 Reply Last reply
        0
        • A Ankit Rajpoot

          Hello everybody, My application has a picturebox control. Now what I want is to move the source image file (to a different directory) without clearing the picture box. Any suggestions? Thanks in advance.

          Excuse me for buttin' in, but I'm interrupt driven.

          modified on Monday, June 1, 2009 9:21 AM

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

          Don't use Image.FromFile as it locks the file, use Image.FromStream instead. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          A 1 Reply Last reply
          0
          • L Luc Pattyn

            Don't use Image.FromFile as it locks the file, use Image.FromStream instead. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


            A Offline
            A Offline
            Ankit Rajpoot
            wrote on last edited by
            #5

            Thanks a lot.

            Excuse me for buttin' in, but I'm interrupt driven.

            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