• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.WebBrowserProgressChangedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.WebBrowserProgressChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# WebBrowserProgressChangedEventArgs类的具体用法?C# WebBrowserProgressChangedEventArgs怎么用?C# WebBrowserProgressChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WebBrowserProgressChangedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了WebBrowserProgressChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: OnProgressChanged

 protected virtual void OnProgressChanged(WebBrowserProgressChangedEventArgs e)
 {
     if (this.ProgressChanged != null)
     {
         this.ProgressChanged(this, e);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:WebBrowser.cs


示例17: webBrowser1_ProgressChanged_1

        private void webBrowser1_ProgressChanged_1(object sender, WebBrowserProgressChangedEventArgs e)
        {

        }
开发者ID:Dima11235813,项目名称:Browser-0.02,代码行数:4,代码来源:Form1.cs


示例18: webBrowser1_ProgressChanged

 /// <summary>
 /// This function will be called as the webpage loads multiple time to indicate the percentage complete
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
 {
     // Don't bother computing percentage if either variable is zero since it will cause a divide by zero error
     if (e.CurrentProgress > 0 && e.MaximumProgress > 0)
     {
         // Calculate percentage
         int percentage =  (int)(e.CurrentProgress * 100 / e.MaximumProgress);
         
         // If the percentage is > 100 it means additional processing was done on the page so we want to ignore it
         if( percentage <= 100)
         {
             toolStripProgressBar1.ProgressBar.Value = percentage;
         }
     }
     else
     {
         // Set the percentage to zero if we can't compute it
         toolStripProgressBar1.ProgressBar.Value = 0;
     }
 }
开发者ID:Barnacules,项目名称:Codegasm,代码行数:25,代码来源:Form1.cs


示例19: newWebBrowser_ProgressChanged

        /// <summary>
        /// 控制进度条变化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void newWebBrowser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            toolStripProgressBar1.Visible = true;
            toolStripProgressBar1.Maximum = (int)e.MaximumProgress;
            toolStripProgressBar1.Value = (int)e.CurrentProgress;
            toolStripProgressBar1.Visible = false;
            /*******************暂时处理办法*********************/
            //解决网页加载慢导致标题未显示出来
            if (e.MaximumProgress==e.CurrentProgress)
                ((TabPage)getCurrentBrowser().Parent).Text = newTitle(getCurrentBrowser().DocumentTitle);

            setButtonStatus();
        }
开发者ID:dawndiy,项目名称:DawnBrowser,代码行数:18,代码来源:MainForm.cs


示例20: Browser_ProgressChanged

        private void Browser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
        {
            Program.AssertOnEventThread();

            if (tabControl != null && tabControl.SelectedTab != null && tabControl.SelectedTab.Tag == this)
            {
                if (e.MaximumProgress != 0)
                {
                    if (Program.MainWindow.StatusBarAction == null || Program.MainWindow.StatusBarAction.IsCompleted)
                    {
                        MainWindowActionAtNavigateTime = Program.MainWindow.StatusBarAction;
                        int progr = Convert.ToInt32((e.CurrentProgress * 100L) / (e.MaximumProgress));
                        Program.MainWindow.SetProgressBar(true, progr);
                    }
                    if (Browser.Url != null)
                    {
                        string text = e.CurrentProgress >= e.MaximumProgress
                            ? ""
                            : string.Format(Messages.LOADING, Browser.Url.ToString().Ellipsise(50));
                        Program.MainWindow.SetStatusBar(null, text);
                    }
                }
            }
        }
开发者ID:huizh,项目名称:xenadmin,代码行数:24,代码来源:TabPageFeature.cs



注:本文中的System.Windows.Forms.WebBrowserProgressChangedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.XEvent类代码示例发布时间:2022-05-26
下一篇:
C# Forms.WebBrowserNavigatingEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap