Link to home
Create AccountLog in
Avatar of MrTV
MrTVFlag for Thailand

asked on

c# browser control skip script warning

How can I disable scrip warning in browser control
delscript-warning.png
SOLUTION
Avatar of s_chilkury
s_chilkury
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
sorry about that.. set it to false..
WebBrowser wb = new WebBrowser();
wb.ScriptErrorsSuppressed = false;//this will get rid of messageboxes that popup for script errors at runtime..

Open in new window

try both actually i was confused.. I think first example by setting ScriptErrorsSuppressed to true would work...