Ejemplo n.º 1
0
        private void Browser_Load(object sender, System.EventArgs e)
        {
            hc.Size = this.ClientSize;

            if (!Path.IsPathRooted(navigateTo))
            {
                string currPath = AppDomain.CurrentDomain.BaseDirectory;
                hc.Navigate("file:///" + currPath + navigateTo);
            }
            else
            {
                hc.Navigate("file:///" + navigateTo);
            }

            hc.Show();
        }
Ejemplo n.º 2
0
        private void Browser_Load(object sender, System.EventArgs e)
        {
            hc.Size = this.Size;
            string currPath = AppDomain.CurrentDomain.BaseDirectory;

            hc.Navigate("file:///" + navigateTo);
            hc.Show();
        }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     htmlControl1.Navigate(textUrl.Text);
 }
Ejemplo n.º 4
0
 private void buttonExit_Click(object sender, EventArgs e)
 {
     html.Navigate("https://www.bing.com");
 }