helloamit78
September 15th, 2001, 12:50 AM
I want to open a web page in Internet Explorer through the click of a command button of my VB Application.
|
Click to See Complete Forum and Search --> : Opening a web page through a VB Application helloamit78 September 15th, 2001, 12:50 AM I want to open a web page in Internet Explorer through the click of a command button of my VB Application. siddharth_sp September 15th, 2001, 01:22 AM 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. karthik6 September 15th, 2001, 12:09 PM dear siddharth for me ur code is not working help i have emailed u also from kar_raju@yahoo.com isit my site at http://in.members.tripodasia.com/karthik_immortal siddharth_sp September 16th, 2001, 11:38 PM what is happening.....what is exactly happening when u run the code i passed you????? S/W Developer India. Cakkie September 17th, 2001, 01:13 AM Try reading this http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=61620 Tom Cannaerts slisse@planetinternet.be 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |