-
Dec 3rd, 2022, 01:10 PM
#1
Thread Starter
New Member
WebBrowser1 not working
hi everyone
if anyone is exert so kindly help me
i am using WebBrowser1 and my website is not opeing
i am using this code:
Private Sub Form_Load()
WebBrowser1.Silent = True
WebBrowser1.Navigate "https://aiwa.ae/"
End Sub
i want to open that website in webbrowser "https://aiwa.ae/"
so kindly solve me issue with easy code.
see attchment screenshoot .
-
Dec 3rd, 2022, 01:28 PM
#2
Re: WebBrowser1 not working
Try some other website...your code is fine as far as I can see...I had issues try your website there.
Sam
Sam I am (as well as Confused at times).
-
Dec 3rd, 2022, 01:33 PM
#3
Thread Starter
New Member
Re: WebBrowser1 not working
hi sam
thanks for reply .
yeah i know my code is working but i want to open that website in browser. because i have a project for that.
so kindly help me how can i open (https://aiwa.ae/) that website.
thanks you so much
-
Dec 3rd, 2022, 01:36 PM
#4
Re: WebBrowser1 not working
Sam I am (as well as Confused at times).
-
Dec 5th, 2022, 03:46 AM
#5
Member
Re: WebBrowser1 not working
Maybe some javascipt ES6 inside the website?
Note that WebBrowser uses Internet Explorer and nowaday many website doesn't work with IE
-
Dec 5th, 2022, 06:19 AM
#6
Junior Member
Re: WebBrowser1 not working
If you just want to open the URL in a browser window, then use ShellExecute: http://support.microsoft.com/kb/224816
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()
Dim r As Long
r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)
End Sub
This will open the URL in the default browser.
Otherwise, if you need to display the webpage inside your app, use the WebBrowser control.
-
Dec 5th, 2022, 08:02 AM
#7
Re: WebBrowser1 not working
 Originally Posted by Attilio
Maybe some javascipt ES6 inside the website?
Note that WebBrowser uses Internet Explorer and nowaday many website doesn't work with IE
Not only that but the web browser control's engine defaults to something like IE7 ... to get it to something more modern, you have to update a registry setting.
-tg
-
Dec 6th, 2022, 04:58 PM
#8
Frenzied Member
Re: WebBrowser1 not working
Trying https://aiwe.ae straight into both Firefox and Edge window got no result.
Last edited by el84; Dec 6th, 2022 at 05:02 PM.
Thanks all!
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
|