예제 #1
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     DocumentWindow tab = new DocumentWindow();
     Browser br = new Browser();
     br.Dock = DockStyle.Fill;
     tab.Controls.Add(br);
     radDock1.AddDocument(tab, DockPosition.Fill);
 }
예제 #2
0
        public MainForm()
        {
            InitializeComponent();

            WebCoreConfig webConfig = new WebCoreConfig()
            {
                SaveCacheAndCookies = true,
                HomeURL = "http://www.google.com",
                LogLevel = LogLevel.Verbose
            };
            WebCore.Initialize(webConfig);

            DocumentWindow MainTab = new DocumentWindow();
            MainTab.Text = "Home";
            Browser MainBr = new Browser();
            MainBr.Dock = DockStyle.Fill;
            MainTab.Controls.Add(MainBr);
            radDock1.AddDocument(MainTab, DockPosition.Fill);
        }