I'm not sure if this is a good solution but you can remove the warning message with 2 steps.

1. turn off the script debugging by checking the "Disable script debugging (IE) and Disable script debugging (Others)". These settings are in the "Advanced" tab of the IE properties.

2. Add "<WebBrowser>.Silent = true" to your code before loading the page.