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. openfiledialog

openfiledialog

Scheduled Pinned Locked Moved C#
csharp
5 Posts 5 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
    abu anas alazuneh
    wrote on last edited by
    #1

    how i can use the openfiledialod and savefiledialog the return picture in c#

    S C I X 4 Replies Last reply
    0
    • A abu anas alazuneh

      how i can use the openfiledialod and savefiledialog the return picture in c#

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Uhmm, i don't think I understood your question. What do you mean with "return picture"? Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      1 Reply Last reply
      0
      • A abu anas alazuneh

        how i can use the openfiledialod and savefiledialog the return picture in c#

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

        You can configure to only select picture files, but it will still return a file path or a stream, it's up to you to load it as an image, and use it however you like.

        Christian Graus Driven to the arms of OSX by Vista.

        1 Reply Last reply
        0
        • A abu anas alazuneh

          how i can use the openfiledialod and savefiledialog the return picture in c#

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

          If you are asking about to open and save only picture files then you have to add Filter to dialogs of all image file formats like *.jpg, *.gif, *.bmp

          1 Reply Last reply
          0
          • A abu anas alazuneh

            how i can use the openfiledialod and savefiledialog the return picture in c#

            X Offline
            X Offline
            Xmen Real
            wrote on last edited by
            #5

            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "PNG|*.png|JPG|*.jpg";
            if (ofd.ShowDialog() == DialogResult.OK)
            Image img = Image.FromFile(ofd.FileName);

            this may help ;)

            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

            ----------------------------------------------- 128 bit encrypted signature, crack if you can

            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