Solved

Shell Execute problem

Posted on 2004-09-21
2
200 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 125 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

808 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