kashif.special2005
Active Member
- Joined
- Oct 26, 2009
- Messages
- 443
Hi,
I have a webbrowser control in a form, where a html files contents shows in it, it is working fine in windows 7, but I don't know it is not working in Windows 10.
Code Not Working:- below code fires on click event of a button
Code Working:- When I am running below code separately (On Run Forms Initialize Event Not From Button) Webbrowser is working fine and the content is showing in the webbrowser.
Please help me to resolve this problem.
Thanks
Kashif
I have a webbrowser control in a form, where a html files contents shows in it, it is working fine in windows 7, but I don't know it is not working in Windows 10.
Code Not Working:- below code fires on click event of a button
Code:
If Sheet1.CheckBoxes("chkMailBody").Value = 1 Then
MailBody.WebBrowser1.Navigate "G:\Request.html"
MailBody.Show
'MailBody.WebBrowser1.Visible = True
End If
Code Working:- When I am running below code separately (On Run Forms Initialize Event Not From Button) Webbrowser is working fine and the content is showing in the webbrowser.
Code:
Private Sub UserForm_Initialize()
Me.WebBrowser1.Navigate2 "G:\Request.html"
End Sub
Please help me to resolve this problem.
Thanks
Kashif
Last edited: