Si-clone
asked on
C# AxWebBrowser and Java
Hello,
I have an AxWebBrowser in a C# project and I am having a little difficulty with a Java applet.
If I visit the site (for example) liftoff.msfc.nasa.gov/real time/jtrac k/spacecra ft.html, it attempts to run an applet and I get a security warning.
I would simply like to disable Java, or catch this security warning programatically and dismiss it.
The same for other plugins (Flash etc).
Appreciate any help.
I have an AxWebBrowser in a C# project and I am having a little difficulty with a Java applet.
If I visit the site (for example) liftoff.msfc.nasa.gov/real
I would simply like to disable Java, or catch this security warning programatically and dismiss it.
The same for other plugins (Flash etc).
Appreciate any help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i have tried running it with Silent=True on AxwebBrowser. but it does not work with me, probably it will work with @poster
Hi armoghan,
For me, its not giving the worning when I use Silent = true which it gives when I use Silent = false.
For me, its not giving the worning when I use Silent = true which it gives when I use Silent = false.
Have you tried the URL mentioned by the user i.e.
liftoff.msfc.nasa.gov/real time/jtrac k/spacecra ft.html
I think it only hides Javascript windows, popups, not the JavaApplet Security Warning
liftoff.msfc.nasa.gov/real
I think it only hides Javascript windows, popups, not the JavaApplet Security Warning
To tell you the truth... I ONLY tried that one :)
Chester.
Chester.
ASKER
Hello,
Thanks for all of you input.
The silent property does not assist me - I still get the Java prompt.
I found an article previously here: http://www.kbalertz.com/Feedback.aspx?kbNumber=329014 that outlines how to implement the IE Options dialog from within a C# application (much like the VB one offered by moghan above). However, when I add the interface declarations, I get the following error when I try run my app:
(This occurs in InitializeComponent() )
An unhandled exception of type 'System.Resources.MissingM
Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "SB.resources" was correctly embedded or linked into assembly "SN".
baseName: SB locationInfo: SN.SB resource file name: SB.resources assembly: SN, Version=1.0.1786.24616, Culture=neutral, PublicKeyToken=null.
I'm still looking at controlling this programatically. Does anyone have any ideas about changing the IE security options through the registry?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have to look into InternetSecurityManager object
This is a C++ example for changing settings of IE security.
http://www.codeguru.com/Cpp/I-N/ieprogram/displayinginformation/article.php/c8559/
This is a C++ example for changing settings of IE security.
http://www.codeguru.com/Cpp/I-N/ieprogram/displayinginformation/article.php/c8559/
ASKER
Hello,
None of the answers above helped with the original issue of being able to stop the Java error. They have helped with subsequent issues.
Thanks to all
None of the answers above helped with the original issue of being able to stop the Java error. They have helped with subsequent issues.
Thanks to all
http://www.dotnetforums.net/t80970.html