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. help me

help me

Scheduled Pinned Locked Moved Visual Basic
helpadobe
4 Posts 4 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.
  • B Offline
    B Offline
    bawades
    wrote on last edited by
    #1

    hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please

    G H F 3 Replies Last reply
    0
    • B bawades

      hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Please write a descriptive subject. The subject "help me" provides no useful information what so ever. What do you mean when you say that the code "is error"? Do you get an error message? Doesn't it do what you expected, and if so, what did you expect and what happens? Follow the pattern in the code you have; a description followed by a file mask. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • B bawades

        hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please

        H Offline
        H Offline
        HaloZa
        wrote on last edited by
        #3

        Not that hard openFile.Filter = "adobe(*.pdf) |*.pdf|document(*.doc) |*.doc|jpeg(*.jpg) |*.jpg"

        1 Reply Last reply
        0
        • B bawades

          hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please

          F Offline
          F Offline
          FrankyT
          wrote on last edited by
          #4

          "adobe(pdf)|*.pdf |document(doc)|*.doc|jpeg(jpg)|*.jpg" Each pairing is | delimited eg. "type_HumanReadable|FileSystemMask". then each pair is futher delimited by a pipe eg. "adobe(pdf)|*.pdf |document(doc)|*.doc" also watch out for .jpeg s I think you can add ", *.jpeg" to the end, but I can't quite recall off the top of my head. oh and the other had some good points. look over his/her post. next time just highlight "Openfile.Filter" and hit F1 to look at the help doc. I have to look this one up every time... hey...slang is the vernacular for the vernacular...wow

          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