Exemplo n.º 1
0
 private void Btn_Enter_Click(object sender, EventArgs e)
 {
     try
     {
         if (TextBox_WebLink.Text != "")
         {
             WebBrowser_Main.Navigate(TextBox_WebLink.Text);
         }
     }
     catch (Exception)
     { }
 }
Exemplo n.º 2
0
 private void Form_SerialPortSetting_Load(object sender, EventArgs e)
 {
     try
     {
         string htmlPath = Environment.CurrentDirectory + "\\page.html";
         WebBrowser_Main.Navigate(htmlPath);
         WebBrowser_Main.ObjectForScripting = this;
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.ToString());
         return;
     }
 }
 public void Home()
 {
     WebBrowser_Main.Navigate(MainUrl);
 }