|
-
September 15th, 2001, 12:50 AM
#1
Opening a web page through a VB Application
I want to open a web page in Internet Explorer through the click of a command button of my VB Application.
-
September 15th, 2001, 01:22 AM
#2
Re: Opening a web page through a VB Application
you can use the shell execute api.I am sending u the code also..hope its the one u want
General Declaration of API:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As Long, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Usage:::
command1.click = ShellExecute(0, 0, Trim$(strApplicationPath), , 0, SW_SHOWNORMAL)
where strApplicationPath is a string which will contain the file address to be opened.
Cheers:
Siddhs
S/W Developer
India.
-
September 15th, 2001, 12:09 PM
#3
Re: Opening a web page through a VB Application
dear siddharth for me ur code is not working help i have emailed u also from [email protected]
isit my site at http://in.members.tripodasia.com/karthik_immortal
-
September 16th, 2001, 11:38 PM
#4
Re: Opening a web page through a VB Application
what is happening.....what is exactly happening when u run the code i passed you?????
S/W Developer
India.
-
September 17th, 2001, 01:13 AM
#5
Re: Opening a web page through a VB Application
Try reading this
http://www.codeguru.com/cgi-bin/bbs/...b&Number=61620
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
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
|
Click Here to Expand Forum to Full Width
|