Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Shell Execute problem

Posted on 2004-09-21
2
Medium Priority
?
206 Views
Last Modified: 2010-04-17
Does anyone know how to shell execute a html page from VB5

0
Comment
Question by:backflash
2 Comments
 
LVL 5

Accepted Solution

by:
KarcOrigin earned 500 total points
ID: 12112659
Write this in the module:

Option Explicit

Public 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


And this on the form level:

Private Sub Command1_Click()
  Dim lRet As Long
  lRet = ShellExecute(Me.hwnd, vbNullString, "www.microsoft.com", vbNullString, CurDir, 1)
End Sub
0
 

Author Comment

by:backflash
ID: 12121623
Thanks KarcOrigin

Fantastic effort

Regards backflash
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Introduction to Processes
Starting up a Project

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question