How do i launch default HTML Editor or any External Application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How do i launch default HTML Editor or any External Application

  1. #1
    Srinu Tulluri Guest

    How do i launch default HTML Editor or any External Application


    How do i launch default HTML Editor or any External Application from an activex
    control..

    Thanks in advance
    Srinu

  2. #2
    Bernie Guest

    Re: How do i launch default HTML Editor or any External Application


    "Srinu Tulluri" <stulluri@siebel.com> wrote:
    >
    >How do i launch default HTML Editor or any External Application from an

    activex
    >control..
    >
    >Thanks in advance
    >Srinu



  3. #3
    Bernie Guest

    Re: How do i launch default HTML Editor or any External Application


    "Srinu Tulluri" <stulluri@siebel.com> wrote:
    >
    >How do i launch default HTML Editor or any External Application from an

    activex
    >control..
    >
    >Thanks in advance
    >Srinu



  4. #4
    Bernie Guest

    Re: How do i launch default HTML Editor or any External Application


    "Srinu Tulluri" <stulluri@siebel.com> wrote:
    >
    >How do i launch default HTML Editor or any External Application from an

    activex
    >control..
    >
    >Thanks in advance
    >Srinu


    Hi Srinu

    Put this in a module and call function ViewURL(<any valid URL>).
    '================================================================
    Private Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" _
    (ByVal HWnd As Long, _
    ByVal lpOperation As String, _
    ByVal lpFile As String, _
    ByVal lpParameters As String, _
    ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) As Long

    Public Sub ViewURL(ByRef URLAddress As String)

    'Don't do anything if no address is supplied...
    If URLAddress = vbNullString Then Exit Sub

    'Launch default browser whatever that might be...
    Call ShellExecute(0&, _
    vbNullString, _
    URLAddress, _
    vbNullString, _
    vbNullString, _
    vbMaximizedFocus)

    End Sub
    '=================================================================

    Regards
    Bernie

  5. #5
    Bernie Guest

    Re: How do i launch default HTML Editor or any External Application


    "Srinu Tulluri" <stulluri@siebel.com> wrote:
    >
    >How do i launch default HTML Editor or any External Application from an

    activex
    >control..
    >
    >Thanks in advance
    >Srinu


    Hi Srinu

    Put this in a module and call function ViewURL(<any valid URL>).
    '================================================================
    Private Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" _
    (ByVal HWnd As Long, _
    ByVal lpOperation As String, _
    ByVal lpFile As String, _
    ByVal lpParameters As String, _
    ByVal lpDirectory As String, _
    ByVal nShowCmd As Long) As Long

    Public Sub ViewURL(ByRef URLAddress As String)

    'Don't do anything if no address is supplied...
    If URLAddress = vbNullString Then Exit Sub

    'Launch default browser whatever that might be...
    Call ShellExecute(0&, _
    vbNullString, _
    URLAddress, _
    vbNullString, _
    vbNullString, _
    vbMaximizedFocus)

    End Sub
    '=================================================================

    Regards
    Bernie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center