Click here to Skip to main content
15,039,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to hide the toolbar and address bar in Internet Explorer when running the WPF browser application...
Updated 23-Apr-12 21:06pm

1 solution

Try this
using SHDocVw; //Interop.SHDocVw.dll
using Shell32; //Interop.Shell32.dll

namespace CSBrowserHelperObject
    class Program
        static private SHDocVw.InternetExplorer m_IExplorer = null;
        static private IWebBrowserApp m_WebBrowser = null;

        public static void Main(string[] args)
            Shell shell = new Shell32.Shell();
            ShellWindows ies = (ShellWindows)shell.Windows(); 
            InternetExplorer ie;
            for (int i = 0; i < ies.Count; i++)
                ie = (InternetExplorer)ies.Item(i);
                ie.ToolBar = 0;
farhan.mycom 29-Apr-12 3:40am
Every time I get the below error

System.Windows.Markup.XamlParseException was unhandled
Message: 'The invocation of the constructor on type 'test.Page1' that matches the specified binding constraints threw an exception.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900