当前位置: 首页 > news >正文

专门做2k名单的网站站长工具seo综合查询引流

专门做2k名单的网站,站长工具seo综合查询引流,那个网站使用bs做的,南宁网站建设公司排名Download Source & DemoSystem.Windows.Forms.ProgressBar的样式实在是太普通了, RarProgressBar让你多一种选择.我并没有实现双进度显示, 因为我想不出除了文件压缩外还有什么地方能够用到双进度显示/**//////RarProgressBar.cs//仿RAR式进度条////version 1.00//remarks …
Download Source & Demo

r_rarprogressbar.png

System.Windows.Forms.ProgressBar的样式实在是太普通了, RarProgressBar让你多一种选择.
我并没有实现双进度显示, 因为我想不出除了文件压缩外还有什么地方能够用到双进度显示


ExpandedBlockStart.gifContractedBlock.gif/**////
None.gif//  RarProgressBar.cs
None.gif
//  仿RAR式进度条
None.gif
//
None.gif
//  @version 1.00
None.gif
//  @remarks For study purpose
None.gif
//  @author Icebird @date 2006-07-03
ExpandedBlockStart.gifContractedBlock.gif
/**////
None.gifusing System;
None.gif
using System.Windows.Forms;
None.gif
using System.ComponentModel;
None.gif
using System.Collections;
None.gif
using System.Diagnostics;
None.gif
using System.Drawing;
None.gif
None.gif
namespace ControlsEx
ExpandedBlockStart.gifContractedBlock.gif
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif    
/**//// <summary>
InBlock.gif    
/// RarProgressBar
ExpandedSubBlockEnd.gif    
/// </summary>

InBlock.gif    [DefaultProperty("Value")]
InBlock.gif    
public class RarProgressBar : System.Windows.Forms.Control
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        
private Pen whitePen, whitePen2;
InBlock.gif        
private Pen blackPen;
InBlock.gif        
private Pen blackPen2;
InBlock.gif        
private Pen lightGrayPen;
InBlock.gif        
private Pen lightGrayPen2;
InBlock.gif        
private Brush foreBrush;
InBlock.gif
InBlock.gif        
private int maximum;
InBlock.gif        
private int minimum;
InBlock.gif        
private int step;
InBlock.gif        
private int value;
InBlock.gif
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>
InBlock.gif        
/// Constructor
ExpandedSubBlockEnd.gif        
/// </summary>

InBlock.gif        public RarProgressBar()
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            SetStyle(ControlStyles.Selectable, 
false);
InBlock.gif            SetStyle(ControlStyles.SupportsTransparentBackColor 
| ControlStyles.ResizeRedraw | ControlStyles.DoubleBuffer |
InBlock.gif                ControlStyles.AllPaintingInWmPaint 
| ControlStyles.UserPaint, true);
InBlock.gif            
this.minimum = 0;
InBlock.gif            
this.maximum = 100;
InBlock.gif            
this.step = 10;
InBlock.gif            
this.value = 0;
InBlock.gif            
this.BackColor = ColorTranslator.FromHtml("#946D6B");
InBlock.gif            
this.ForeColor = ColorTranslator.FromHtml("#D6D7DE");
InBlock.gif            
this.Height = 12;
InBlock.gif
InBlock.gif            whitePen 
= new Pen(Color.White);
InBlock.gif            whitePen2 
= new Pen(ColorTranslator.FromHtml("#EFEBEF"));
InBlock.gif            blackPen 
= new Pen(ColorTranslator.FromHtml("#636163"));
InBlock.gif            blackPen2 
= new Pen(ColorTranslator.FromHtml("#424142"));
InBlock.gif            lightGrayPen 
= new Pen(ColorTranslator.FromHtml("#B59694"));
InBlock.gif            lightGrayPen2 
= new Pen(ColorTranslator.FromHtml("#9C8284"));
InBlock.gif            foreBrush 
= new SolidBrush(ForeColor);
ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected override void Dispose( bool disposing )
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
if( disposing )
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                whitePen.Dispose();
InBlock.gif                whitePen2.Dispose();
InBlock.gif                blackPen.Dispose();
InBlock.gif                blackPen2.Dispose();
InBlock.gif                lightGrayPen.Dispose();
InBlock.gif                lightGrayPen2.Dispose();
InBlock.gif                foreBrush.Dispose();
ExpandedSubBlockEnd.gif            }

InBlock.gif            
base.Dispose( disposing );
ExpandedSubBlockEnd.gif        }

InBlock.gif
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>
InBlock.gif        
/// 当前值增加指定增量
InBlock.gif        
/// </summary>
ExpandedSubBlockEnd.gif        
/// <param name="value"> 增量</param>

InBlock.gif        public void Increment(int value)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
this.value += value;
InBlock.gif            
if (this.value < this.minimum)
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
this.value = this.minimum;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
if (this.value > this.maximum)
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
this.value = this.maximum;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
this.UpdatePos();
ExpandedSubBlockEnd.gif        }

InBlock.gif
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>
InBlock.gif        
/// 当前值增加固定增量(Step)
ExpandedSubBlockEnd.gif        
/// </summary>

InBlock.gif        public void PerformStep()
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
this.Increment(this.step);
ExpandedSubBlockEnd.gif        }

InBlock.gif
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>
InBlock.gif        
/// 输出字符串
ExpandedSubBlockEnd.gif        
/// </summary>

InBlock.gif        public override string ToString()
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
string s = base.ToString();
InBlock.gif            
return (s + ", Minimum: " + this.Minimum.ToString() + ", Maximum: " + this.Maximum.ToString() + ", Value: " + this.Value.ToString());
ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
private void UpdatePos()
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            Invalidate();
ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [Browsable(
false), EditorBrowsable(EditorBrowsableState.Never)]
InBlock.gif        
public override bool AllowDrop
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.AllowDrop;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.AllowDrop = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [EditorBrowsable(EditorBrowsableState.Never), Browsable(
false)]
InBlock.gif        
public override Color BackColor
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.BackColor;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.BackColor = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [Browsable(
false), EditorBrowsable(EditorBrowsableState.Never)]
InBlock.gif        
public override Image BackgroundImage
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.BackgroundImage;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.BackgroundImage = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected override System.Windows.Forms.ImeMode DefaultImeMode
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return System.Windows.Forms.ImeMode.Disable;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected override Size DefaultSize
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return new Size(10012);
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [EditorBrowsable(EditorBrowsableState.Never), Browsable(
false)]
InBlock.gif        
public override System.Drawing.Font Font
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.Font;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.Font = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [Browsable(
false), EditorBrowsable(EditorBrowsableState.Never)]
InBlock.gif        
public override Color ForeColor
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.ForeColor;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.ForeColor = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [DescriptionAttribute(
"此 ProgressBar 正使用的范围的上限"),RefreshProperties(RefreshProperties.Repaint), DefaultValue(100), CategoryAttribute("行为")]
InBlock.gif        
public int Maximum
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return this.maximum;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
if (this.maximum != value)
ExpandedSubBlockStart.gifContractedSubBlock.gif                
dot.gif{
InBlock.gif                    
if (value < 0)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif                        
throw new ArgumentException(String.Format("'{1}'不是'{0}'的有效值。'{0}'必须大于或等于 {2}。"new object[] dot.gif"maximum", value.ToString(), "0" }));
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
if (this.minimum > value)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
InBlock.gif                        
this.minimum = value;
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
this.maximum = value;
InBlock.gif                    
if (this.value > this.maximum)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
InBlock.gif                        
this.value = this.maximum;
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
this.UpdatePos();
ExpandedSubBlockEnd.gif                }

ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [RefreshProperties(RefreshProperties.Repaint), DescriptionAttribute(
"此 ProgressBar 正使用的范围的下限"), CategoryAttribute("行为"), DefaultValue(0)]
InBlock.gif        
public int Minimum
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return this.minimum;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
if (this.minimum != value)
ExpandedSubBlockStart.gifContractedSubBlock.gif                
dot.gif{
InBlock.gif                    
if (value < 0)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif                        
throw new ArgumentException(String.Format("'{1}'不是'{0}'的有效值。'{0}'必须大于或等于 {2}。"new object[] dot.gif"minimum", value.ToString(), "0" }));
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
if (this.maximum < value)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
InBlock.gif                        
this.maximum = value;
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
this.minimum = value;
InBlock.gif                    
if (this.value < this.minimum)
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
InBlock.gif                        
this.value = this.minimum;
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
this.UpdatePos();
ExpandedSubBlockEnd.gif                }

ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [Browsable(
false), EditorBrowsable(EditorBrowsableState.Never)]
InBlock.gif        
public override System.Windows.Forms.RightToLeft RightToLeft
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.RightToLeft;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.RightToLeft = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [DescriptionAttribute(
"当调用 Step() 方法时,控件当前值的增量。"), DefaultValue(10), CategoryAttribute("行为")]
InBlock.gif        
public int Step
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return this.step;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
this.step = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [Bindable(
false), Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
InBlock.gif        
public override string Text
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return base.Text;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
base.Text = value;
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        [DefaultValue(
0), DescriptionAttribute("ProgressBar 的当前值,在由最小和最大属性指定的范围之内。"), Bindable(true), CategoryAttribute("行为")]
InBlock.gif        
public int Value
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return this.value;
ExpandedSubBlockEnd.gif            }

InBlock.gif            
set
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
if (this.value != value)
ExpandedSubBlockStart.gifContractedSubBlock.gif                
dot.gif{
InBlock.gif                    
if ((value < this.minimum) || (value > this.maximum))
ExpandedSubBlockStart.gifContractedSubBlock.gif                    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif                        
throw new ArgumentException(String.Format("'{1}'不是'{0}'的有效值。'{0}'应介于 '{2}' 和 '{3}' 之间。"new object[] dot.gif"value", value.ToString(), "'minimum'""'maximum'" }));
ExpandedSubBlockEnd.gif                    }

InBlock.gif                    
this.value = value;
InBlock.gif                    
this.UpdatePos();
ExpandedSubBlockEnd.gif                }

ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected override void OnMouseEnter(EventArgs e)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
base.OnMouseEnter (e);
ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
private int ProgressWidth
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
get
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                
return Convert.ToInt32(Math.Floor(1.0 * ClientSize.Width / Maximum * Value));
ExpandedSubBlockEnd.gif            }

ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected override void OnPaint(PaintEventArgs e)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            Graphics g 
= e.Graphics;
InBlock.gif
InBlock.gif            
int pWidth = ProgressWidth;
InBlock.gif            Pen pen;
InBlock.gif            
if (Parent != null)
InBlock.gif                pen 
= new Pen(Parent.BackColor);
InBlock.gif            
else
InBlock.gif                pen 
= new Pen(ColorTranslator.FromHtml("#EFEBE7"));
InBlock.gif            g.DrawRectangle(pen, 
00, ClientSize.Width - 1, ClientSize.Height - 1);
InBlock.gif            pen.Dispose();
InBlock.gif
InBlock.gif            g.FillRectangle(foreBrush, 
00, pWidth, ClientSize.Height - 3 );
InBlock.gif            g.DrawRectangle(whitePen, 
00, pWidth, ClientSize.Height - 2);
InBlock.gif            g.DrawRectangle(whitePen2, 
11, pWidth - 2, ClientSize.Height - 4);
InBlock.gif
InBlock.gif            
//drawing right progress
InBlock.gif
            if (Value < Maximum)
ExpandedSubBlockStart.gifContractedSubBlock.gif            
dot.gif{
InBlock.gif                g.DrawRectangle(lightGrayPen, pWidth, 
0, ClientSize.Width - pWidth - 2, ClientSize.Height - 3);
InBlock.gif                g.DrawRectangle(lightGrayPen2, pWidth 
+ 11, ClientSize.Width - pWidth - 4, ClientSize.Height - 5);
ExpandedSubBlockEnd.gif            }

InBlock.gif
InBlock.gif            
//drawing separator
InBlock.gif
            g.DrawLine(blackPen, pWidth, 0, pWidth,  ClientSize.Height - 3);
InBlock.gif
InBlock.gif            
//drawing right & bottom borders
InBlock.gif
            g.DrawLine(blackPen,  0, ClientSize.Height - 2,  ClientSize.Width - 1,  ClientSize.Height - 2);
InBlock.gif            g.DrawLine(blackPen2,  
1, ClientSize.Height - 1,  ClientSize.Width,  ClientSize.Height - 1);
InBlock.gif            g.DrawLine(blackPen2,  ClientSize.Width 
- 1,  ClientSize.Height - 1,  ClientSize.Width - 1,  2);
ExpandedSubBlockEnd.gif        }

ExpandedSubBlockEnd.gif    }

ExpandedBlockEnd.gif}

None.gif

转载于:https://www.cnblogs.com/Icebird/archive/2006/07/04/RarProgressBar.html

http://www.lbrq.cn/news/2470771.html

相关文章:

  • 东莞最好的网站建设百度seo刷排名工具
  • 深圳品牌网站建设公司有哪些环球网最新消息
  • 网站广审怎么做北京网站seo公司
  • av插插网站正在建设中网络营销站点推广的方法
  • 阳江企业网站云seo
  • 西安做企业网站谷歌seo公司
  • 高端企业网站建设流程网站如何推广
  • 做网站用什么数据库一个网站推广
  • 贵阳seo网站推广技巧天津seo技术教程
  • 网站不备案有什么后果优化营商环境工作开展情况汇报
  • 长春做网站设计电商网站设计方案
  • wordpress配置要求持续优化疫情防控举措
  • 怎么做网盘搜索网站seo单页面优化
  • 青岛做企业网站的公司网站免费推广
  • 南京一站式工程装饰装修网站seo兼职
  • 动态网站建设包括哪些方面苏州网站制作推广
  • 邢台pc网站开发自己的app如何接广告
  • 上海做一个公司网站多少钱中国百强企业榜单
  • 织梦模板怎么验证网站合肥关键词优化平台
  • 台州网站推广优化企业网站优化解决方案
  • 最优秀的佛山网站建设西安seo报价
  • 南宁做网站的公司有哪些网络营销案例分享
  • 网站分站如何做seoshanghai net
  • 怎样建设个人网站广告赚钱优化大师在哪里
  • 唐山网站建设唐山做网站统计网站访问量
  • 临沂网站排名优化在哪里可以做百度推广
  • wordpress 后台打不开优化网站结构一般包括
  • 教育平台网站seo是免费的吗
  • 网站服务器哪里的好如何写软文赚钱
  • 专门做三国战纪的网站叫什么意思全球热门网站排名
  • sqli-labs通关笔记-第21关 字符型Header-Cookie SQL注入(单引号括号闭合 base64编码绕过 手工注入+脚本注入两种方法)
  • almalinux9.6-4070显卡-ollama-qwen2.5-7b
  • 基于深度学习的图像分类:使用DenseNet实现高效分类
  • OpenRLHF:面向超大语言模型的高性能RLHF训练框架
  • 二开---01
  • 数据结构3-单双链表的泛型实现及ArrayList与LinkedList的区别