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 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(); }