当前位置: 首页>>代码示例>>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;未经允许,请勿转载。