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. Visual Basic
  4. Drag & Drop from PictureBox to Explorer to Generate .bmp File

Drag & Drop from PictureBox to Explorer to Generate .bmp File

Scheduled Pinned Locked Moved Visual Basic
csharpcomlinuxquestion
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.
  • C Offline
    C Offline
    Codemonkey85
    wrote on last edited by
    #1

    Hello, I've been trying to drag & drop an image from a PictureBox to Explorer to create a .bmp file of said image, and I've had no success. I've looked and looked all over the 'Net, found a couple of hopeful looking solutions, but nothing has actually worked. I've played around with drag & drop, and I can move a picture between two PictureBoxes okay. I was kind of thinking if there was a way to get a string of the path in which I am attempting to drop the image, I could just save it, but I don't know if that's the best way or if it's even possible. Does anyone know how this could be done? EDIT: I saw the article here[^], but it's in C#... I only know Visual Basic.

    As I sit here, I contemplate the last words of Socrates: "I drank what?".

    P 1 Reply Last reply
    0
    • C Codemonkey85

      Hello, I've been trying to drag & drop an image from a PictureBox to Explorer to create a .bmp file of said image, and I've had no success. I've looked and looked all over the 'Net, found a couple of hopeful looking solutions, but nothing has actually worked. I've played around with drag & drop, and I can move a picture between two PictureBoxes okay. I was kind of thinking if there was a way to get a string of the path in which I am attempting to drop the image, I could just save it, but I don't know if that's the best way or if it's even possible. Does anyone know how this could be done? EDIT: I saw the article here[^], but it's in C#... I only know Visual Basic.

      As I sit here, I contemplate the last words of Socrates: "I drank what?".

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      CodeMonkey85 wrote:

      it's in C#

      No, it is in C++.

      CodeMonkey85 wrote:

      Does anyone know how this could be done?

      Try taking Mike's code, convert it to pseudocode, and then take that pseudocode and covert to vb.net. Sounds like a bit of work, but it does work okay for the most part.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      C 1 Reply Last reply
      0
      • P Paul Conrad

        CodeMonkey85 wrote:

        it's in C#

        No, it is in C++.

        CodeMonkey85 wrote:

        Does anyone know how this could be done?

        Try taking Mike's code, convert it to pseudocode, and then take that pseudocode and covert to vb.net. Sounds like a bit of work, but it does work okay for the most part.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        C Offline
        C Offline
        Codemonkey85
        wrote on last edited by
        #3

        I could try that, but I'm not exactly at expert level, and this article wasn't really geared toward PictureBox images... as a matter of fact, I don't think it covers dragging to Explorer to generate files at all. Does anyone have any experience or knowledge about this specific problem?

        As I sit here, I contemplate the last words of Socrates: "I drank what?".

        C 1 Reply Last reply
        0
        • C Codemonkey85

          I could try that, but I'm not exactly at expert level, and this article wasn't really geared toward PictureBox images... as a matter of fact, I don't think it covers dragging to Explorer to generate files at all. Does anyone have any experience or knowledge about this specific problem?

          As I sit here, I contemplate the last words of Socrates: "I drank what?".

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You're not going to write a shell extension in VB, you need a real programming language for that (i.e. C++ )

          Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

          C 1 Reply Last reply
          0
          • C Christian Graus

            You're not going to write a shell extension in VB, you need a real programming language for that (i.e. C++ )

            Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

            C Offline
            C Offline
            Codemonkey85
            wrote on last edited by
            #5

            Well, I got my answer... http://forums.msdn.microsoft.com/en-US/vblanguage/thread/919c8485-21aa-4db8-80f3-3e98b5e83708/[^] Thanks anyway!

            As I sit here, I contemplate the last words of Socrates: "I drank what?".

            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