Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            var tab = new TabPadding(tabControlDisplay);
            
             String appdir = Path.GetDirectoryName(Application.ExecutablePath);
            String myfile = Path.Combine(appdir, "map.html");
            browser.Url = new Uri("file:///" + myfile);
            //browser.ScriptErrorsSuppressed = true; //script errors
            //browser.DocumentText = "<html><body style='background-color:black'></body></html>";
            
            //splitContainer1.Panel1Collapsed = true;
            //splitContainer1.Panel1.Show();
            
            //Remove TabControl Header
            tabControlTools.Appearance = TabAppearance.FlatButtons;
            tabControlTools.ItemSize = new Size(0, 1);
            tabControlTools.SizeMode = TabSizeMode.Fixed;
            //Remove TabControl Header
            tabControlDisplay.Appearance = TabAppearance.FlatButtons;
            tabControlDisplay.ItemSize = new Size(0, 1);
            tabControlDisplay.SizeMode = TabSizeMode.Fixed;

            
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            var tab = new TabPadding(tabControlDisplay);

            String appdir = Path.GetDirectoryName(Application.ExecutablePath);
            String myfile = Path.Combine(appdir, "map.html");

            browser.Url = new Uri("file:///" + myfile);
            //browser.ScriptErrorsSuppressed = true; //script errors
            //browser.DocumentText = "<html><body style='background-color:black'></body></html>";

            //splitContainer1.Panel1Collapsed = true;
            //splitContainer1.Panel1.Show();

            //Remove TabControl Header
            tabControlTools.Appearance = TabAppearance.FlatButtons;
            tabControlTools.ItemSize   = new Size(0, 1);
            tabControlTools.SizeMode   = TabSizeMode.Fixed;
            //Remove TabControl Header
            tabControlDisplay.Appearance = TabAppearance.FlatButtons;
            tabControlDisplay.ItemSize   = new Size(0, 1);
            tabControlDisplay.SizeMode   = TabSizeMode.Fixed;
        }