當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.WebBrowserProgressChangedEventArgs類代碼示例

本文整理匯總了C#中System.Windows.Forms.WebBrowserProgressChangedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# WebBrowserProgressChangedEventArgs類的具體用法?C# WebBrowserProgressChangedEventArgs怎麽用?C# WebBrowserProgressChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


WebBrowserProgressChangedEventArgs類屬於System.Windows.Forms命名空間,在下文中一共展示了WebBrowserProgressChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: webBrowser1_ProgressChanged

 private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     if (e.CurrentProgress > 0 && e.MaximumProgress > 0)
     {
         toolStripProgressBar1.ProgressBar.Value = (int)(e.CurrentProgress * 100 / e.MaximumProgress);
     }
 }
開發者ID:manojitballav,項目名稱:my_browser,代碼行數:7,代碼來源:Form1.cs

示例2: webBrowser1_ProgressChanged

		private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
		{
			// Update the progress bar.
			progressBar.Maximum = (int)e.MaximumProgress;
			if (e.CurrentProgress >= 0 && e.CurrentProgress <= e.MaximumProgress)
			{
				progressBar.Value = (int)e.CurrentProgress;
			}
		}
開發者ID:ehershey,項目名稱:development,代碼行數:9,代碼來源:WebBrowserRestricted.cs

示例3: browserWindow_ProgressChanged

 private void browserWindow_ProgressChanged(object sender, 
     WebBrowserProgressChangedEventArgs e)
 {
     if (e.CurrentProgress > 0 && e.MaximumProgress > 0)
     {
         int progress = Convert.ToInt32((e.CurrentProgress / e.MaximumProgress) * 100);
         this.pageLoadProgress.Value = progress > 100 ? 100 : progress;
         this.pageLoadProgress.ToolTipText = "Progress - %" + this.pageLoadProgress.Value.ToString();
     }
 }
開發者ID:JohnLettman,項目名稱:Coursework,代碼行數:10,代碼來源:Browser.cs

示例4: webBrowser1_ProgressChanged

 private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     try
     {
         toolStripProgressBar1.Maximum = (int)e.MaximumProgress;
         toolStripProgressBar1.Value = (int)e.CurrentProgress;
     }
     catch
     {
     }
 }
開發者ID:RH-Code,項目名稱:GAPP,代碼行數:11,代碼來源:KeyRequestForm.cs

示例5: webBrowser_ProgressChanged

        void webBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            if (e.CurrentProgress > 0)
            {
                progressBar.Maximum = Convert.ToInt32(e.MaximumProgress);
                progressBar.Value = Convert.ToInt32(e.CurrentProgress);

                String percentLoaded = ((e.CurrentProgress / e.MaximumProgress) * 100).ToString();

                loadingLabel.Text = "Searching - " + percentLoaded + "%";
            }
        }
開發者ID:ramanlalia,項目名稱:mp3downloader,代碼行數:12,代碼來源:SongsForm.cs

示例6: webBrowser1_ProgressChanged

        private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            try
            {
                progressBar1.Value = Convert.ToInt32(e.CurrentProgress);
                progressBar1.Maximum = Convert.ToInt32(e.MaximumProgress);
            }
            catch
            {

            }
        }
開發者ID:AlaminMahamud,項目名稱:Web-Browser-in-C-Sharp,代碼行數:12,代碼來源:Form1.cs

示例7: webBrowser_ProgressChanged

        void webBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            if (e.MaximumProgress <= 0) { tspbar.Visible = false; return; }
            int precent = (int)(e.CurrentProgress * 100 / e.MaximumProgress);
            if (precent > 0 && tspbar.Visible == false) tspbar.Visible = true;
            tspbar.Value = precent;
            if (precent >= 100) { tspbar.Value = 0; tspbar.Visible = false; }

            if (ProgressChanged != null)
            {
                ProgressChanged(sender, e);
            }
        }
開發者ID:jxdong1013,項目名稱:archivems,代碼行數:13,代碼來源:TCWebControl.cs

示例8: adWebBrowser_ProgressChanged

 private void adWebBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     try
     {
         Invoke((Action)delegate
         {
             adStatusStripProgressBar.Maximum = e.MaximumProgress < 0 ? 0 : (int)e.MaximumProgress;
             adStatusStripProgressBar.Value   = e.CurrentProgress < 0 ? 0 : (int)e.CurrentProgress;
             adStatusStripLabel.Text = adWebBrowser.StatusText;
         });
     }
     catch (Exception exception)
     {
         Program.ErrorLog(exception, "adWebBrowser_ProgressChanged()");
     }
 }
開發者ID:Tigerwhit4,項目名稱:Adminibot,代碼行數:16,代碼來源:AuthDialog.cs

示例9: webRenderer_ProgressChanged

        private void webRenderer_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {

            try
            {
                loadProgressIndicator.Value = Convert.ToInt32(e.CurrentProgress);
                loadProgressIndicator.Maximum = Convert.ToInt32(e.MaximumProgress);
                TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal,this.Handle);
                TaskbarManager.Instance.SetProgressValue(Convert.ToInt32(e.CurrentProgress) / 100, Convert.ToInt32(e.MaximumProgress) / 100);
                percentageLoadLabel.Text = loadProgressIndicator.Value / 100 + " %";

            }
            catch (Exception ex)
            {
                statusLabel.Text = ex.Message;
            }
            
        }
開發者ID:officeravi,項目名稱:MiniProject,代碼行數:18,代碼來源:Form1.cs

示例10: Form1_ProgressChanged

        //ProgressChanged    
        private void Form1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            if (e.CurrentProgress < e.MaximumProgress)
                toolStripProgressBar1.Value=(int)e.CurrentProgress;
            else toolStripProgressBar1.Value = toolStripProgressBar1.Minimum;

        }
開發者ID:miad2401,項目名稱:D-BrowserProject,代碼行數:8,代碼來源:WBrowser.cs

示例11: WebBrowserProgressChanged

        private void WebBrowserProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            if (e.CurrentProgress == -1L)
                return;

            if (e.CurrentProgress == 0L)
                _statusProgressBar.Visible = false;
            else
            {
                _statusProgressBar.Visible = true;
                _statusProgressBar.Maximum = (int)e.MaximumProgress;
                var currentProgress = e.CurrentProgress;
                if (currentProgress > e.MaximumProgress)
                    currentProgress = e.MaximumProgress;
                _statusProgressBar.Value = (int)currentProgress;
            }
        }
開發者ID:permyakov,項目名稱:janus,代碼行數:17,代碼來源:WebBrowserForm.cs

示例12: OnProgressChanged

 protected override void OnProgressChanged(WebBrowserProgressChangedEventArgs e)
 {
     if (ReadyState == WebBrowserReadyState.Interactive && ProcessStage == ProcessingStage.Save)
     {
         StopTimer();
         OnDocumentCompleted(null);
         AllowNavigation = false;
         ProcessStage = ProcessingStage.None;
         Stop();
         if (Saved != null)
             Saved(null, null);
     }
     base.OnProgressChanged(e);
 }
開發者ID:svn2github,項目名稱:autowikibrowser,代碼行數:14,代碼來源:WebControl.cs

示例13: webBrowser_ProgressChanged

 // UI Events
 private void webBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     if (e.MaximumProgress != 0)
     {
         if (!pbarLoadingProgress.Visible) pbarLoadingProgress.Visible = true;
         pbarLoadingProgress.Value = (int)(e.CurrentProgress * 100 / e.MaximumProgress);
     }
     else
     {
         pbarLoadingProgress.Value = 100;
         pbarLoadingProgress.Visible = false;
     }
 }
開發者ID:ysmood,項目名稱:Archer,代碼行數:14,代碼來源:Browser.cs

示例14: webBrowser_ProgressChanged

 /// <summary>
 /// Event on progress changed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void webBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     if (e.MaximumProgress == 0.0)
         return;
     m_env.ReportManager.SetStatus(
         StatusBarMessageKind.Generic,
         MessageResources.MessageWebBrowse
     );
     int progress = (int)(100 * ((double)e.CurrentProgress / (double)e.MaximumProgress));
     m_env.ReportManager.SetProgress(progress);
 }
開發者ID:ecell,項目名稱:ecell3-ide,代碼行數:16,代碼來源:EcellWebBrowser.cs

示例15: customWebBrowser1_ProgressChanged

 private void customWebBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     Interactivity.SetProgress(e.CurrentProgress, e.MaximumProgress);
 }
開發者ID:avijit1258,項目名稱:UVA-Arena,代碼行數:4,代碼來源:ProblemViewer.cs


注:本文中的System.Windows.Forms.WebBrowserProgressChangedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。