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. running applications in VB 6.0

running applications in VB 6.0

Scheduled Pinned Locked Moved Visual Basic
linuxhelp
2 Posts 2 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
    adnanmadi
    wrote on last edited by
    #1

    :((Hello everybody... i need help in running applications other than exe files using visual basic 6.0 i.e. if i want to open a .doc document using visual basic depending on the user chosen from the open dialog box not statically shell("c:\program files\office\word.exe c:\mydoc.doc") this opens always the same document.. this is not what i need. i want the user to browse his computer for certain files extensions on his harddrive and when he chooses the file it opens. P.S. the program must work for only one extension... thank you very much adnan madi

    H 1 Reply Last reply
    0
    • A adnanmadi

      :((Hello everybody... i need help in running applications other than exe files using visual basic 6.0 i.e. if i want to open a .doc document using visual basic depending on the user chosen from the open dialog box not statically shell("c:\program files\office\word.exe c:\mydoc.doc") this opens always the same document.. this is not what i need. i want the user to browse his computer for certain files extensions on his harddrive and when he chooses the file it opens. P.S. the program must work for only one extension... thank you very much adnan madi

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      in vb6 : Add the Microsoft Common Dialog Control to the components then add the control to the form CommonDialog1.Filter = "Doc|*.doc" CommonDialog1.ShowOpen shell c:\program files\office\word.exe" & CommonDialog1.FileName you better also check if the user click cancel by checking the length of CommonDialog1.FileName

      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