-
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
-
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
-
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
-
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
-
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
Forum Rules
|
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
|
Bookmarks