display pictures from a folder

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?a2FyaW0=?=

    display pictures from a folder

    Hello all,
    Is there a simple cod in vb 2008 to find a folder on a network and open
    a picture from that folder inside the form?

    thanks for any of your help.
  • rowe_newsgroups

    #2
    Re: display pictures from a folder

    On Oct 1, 6:15 am, karim <ka...@discussi ons.microsoft.c omwrote:
    Hello all,
         Is there a simple cod in vb 2008 to find a folder on a networkand open
    a picture from that folder inside the form?
    >
    thanks for any of your help.
    You can use the System.IO.Direc tory class to find the particular file,
    and then depending on what you mean by "open a picture" you can load
    the image onto your form or open it with the default program by using
    System.Diagnost ics.Process.Sta rt(...)

    Thanks,

    Seth Rowe [MVP]

    Comment

    • kimiraikkonen

      #3
      Re: display pictures from a folder

      On Oct 1, 1:15 pm, karim <ka...@discussi ons.microsoft.c omwrote:
      Hello all,
           Is there a simple cod in vb 2008 to find a folder on a networkand open
      a picture from that folder inside the form?
      >
      thanks for any of your help.
      If you're meaning of simply running a file regardless of its
      extenstion, you can use System.Diagnost ics.Process.Sta rt passing
      proper arguments.

      If you just want to display image files on your form, use PictureBox
      control on your form and you can load images dynamically using
      Picturebox's ImageLocation property.

      ' Like:
      PictureBox1.Ima geLocation = "c:\file.jp g"

      Hope this helps,

      Onur Güzel

      Comment

      • =?Utf-8?B?a2FyaW0=?=

        #4
        Re: display pictures from a folder

        thanks alot for the help. that answers my question...

        Comment

        Working...