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(); }
private void Browser_Load(object sender, System.EventArgs e) { hc.Size = this.Size; string currPath = AppDomain.CurrentDomain.BaseDirectory; hc.Navigate("file:///" + navigateTo); hc.Show(); }
private void button1_Click(object sender, EventArgs e) { htmlControl1.Navigate(textUrl.Text); }
private void buttonExit_Click(object sender, EventArgs e) { html.Navigate("https://www.bing.com"); }