DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links