|
-
Apr 29th, 2006, 05:46 AM
#1
Thread Starter
Addicted Member
[RESOLVED] WebBrowser
How can i open the content of webbrowser in new a window with a command button? (like iexplorer or default web browser ).
-
Apr 29th, 2006, 06:09 AM
#2
Fanatic Member
Re: WebBrowser
You could use this:
VB Code:
Private 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
Private Sub Command1_Click()
Call ShellExecute(hwnd, "Open", "http://www.google.com", "", App.Path, 1)
End Sub
-
Apr 29th, 2006, 07:34 AM
#3
Thread Starter
Addicted Member
Re: WebBrowser
what you write for me is for google webpage, but i will not know what page will be in webbrowser1
-
Apr 29th, 2006, 08:18 AM
#4
Fanatic Member
Re: WebBrowser
Ok, then you can use this:
VB Code:
Private 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
Private Sub Command1_Click()
Call ShellExecute(hwnd, "Open", WebBrowser1.LocationURL, "", App.Path, 1)
End Sub
Please add to my reputation if I helped!
-
May 3rd, 2006, 06:15 AM
#5
Thread Starter
Addicted Member
Re: WebBrowser
thenx .. it`s what i need ..
-
May 3rd, 2006, 06:53 AM
#6
Re: WebBrowser
Private 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
Private Const SW_NORMAL = 1
Private Sub Command1_Click()
ShellExecute Me.hwnd, "Open", "http://www.ifwcreations.com", 0&, 0&, SW_NORMAL
End Sub
If u got ur answer then resolved it.[U]
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
|