コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        private void GoTo()
        {
            if (cboUrl.Text.Trim().Length < 1)
            {
                return;
            }
            string url = parseUrl(cboUrl.Text);

            try
            {
                Uri u = new Uri(url);
                IeBrowser.Url = u;
                IeBrowser.Navigate(u);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        private void GoTo()
        {
            if (cboUrl.Text.Trim().Length < 1)
            {
                return;
            }
            string url = parseUrl(cboUrl.Text);

            try
            {
                Uri u = new Uri(url);
                lblStatus.Text = " Loading page ..... ";
                this.Refresh();
                IeBrowser.Url = u;
                IeBrowser.Navigate(u);
                btnCapture.Enabled = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }