Results 1 to 3 of 3

Thread: Image file paterns (.bmp .jpeg .png)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2007
    Posts
    134

    Image file paterns (.bmp .jpeg .png)

    Hi, I have a program that lets you browse documents to find pictures. It will show all the pictures in the folder you have currently selected, but it only seems to show .bmp images. How could I make it so it could see .jpeg .jpg and .png images types also? I have attached the form I am working with.
    Attached Files Attached Files

  2. #2
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Image file paterns (.bmp .jpeg .png)

    use the Filter property of the Comman Dialog.

    Filter="*.bmp | *.gif | *.jpeg | *.jpg"
    Regards
    Srinivasan Baskaran
    India

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Image file paterns (.bmp .jpeg .png)

    If you are using the FileListBox, you can accomplish this using the Pattern Property
    Code:
    File1.Pattern = "*.jpg; *.bmp; *.gif"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width