private void btnOpen_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); if (DialogResult.OK == dlg.ShowDialog()) { edtUrl.Text = dlg.FileName; webBrowser1.Navigate(edtUrl.Text); } }