Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute to open a hidden window not working

Status
Not open for further replies.

talln6e

Programmer
Dec 6, 2001
6
US
I want to exec a url in VB6 or Vb.Net, but NOT open a
window when doing so.
Using ShellExecute from VB6 with 0 for a hidden window is
the closest I can get, but the window is opening anyway.
Does anyone know another way?
This is my current code:

Dim myurl as string
Dim res As Long

myurl = "
'res = ShellExecute(0&, "open", myurl, vbNullString, vbNullString, vbNormalFocus)
res = ShellExecute(0&, "open", myurl, vbNullString, vbNullString, 0) '0 is for hidden window

Thanks for any help anyone can give.
Howie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top