Solved

Shell Execute problem

Posted on 2004-09-21
2
199 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
Comment Utility
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
Comment Utility
Thanks KarcOrigin

Fantastic effort

Regards backflash
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to setup 18 78
noX challenge 17 75
python sqlite question 11 42
Scripting vs. Programming languages 25 108
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now