Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008

    Unanswered: Replacement for ShellExecute?

    In VB 6 we could use Shellexecute to open basically any file. For example, I could execute this command and it would open whatever version of Word I have and open this document.
    RESULT = ShellExecute(Me.hwnd, "Open", "SomeDocument.doc", 0&, 0&, 1)

    What is the replacement command in VB.Net? It's not Shell, because that wants to open only an executable file.

  2. #2
    Join Date
    Jun 2004
    Arizona, USA
    You can call windows APIs from within dotNet...
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Posting Permissions

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