CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: VB

  1. #1
    Guest

    VB

    can anyone tell me using code how can i launch an html editor from a VB applicatio i.e when i click a buttton i get an html editor such as homesite4.0 launched or displayed.
    thanks
    BB


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: VB

    The easiest way, i guess would be to use the Shell function and give it the path to the .exe. (provided you knew it)

    ie

    Call Shell(PathToExe, vbNormalFocus)




    If you dont know the path to the program executable, then you could ask the user for its location when installing the program and keep that value in the registry or something and use that path to give to the shell function. I don't think you could use the ShellExecute on an .html file because the system would just open the client's browser intead of the html editor.

    Other than that, I dont know. Hope this wasn't a waste of your time.

    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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

Featured