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

网站开发集seo查询排名系统

网站开发集,seo查询排名系统,邵东网站开发,wordpress 宽度辛苦半天做出来的,如果觉得好用,记得点赞 效果图如下: 具体操作: 1 、添加代码(代码在下面),重新生成下整个工程,在工具栏中就出现控件,将控件拖到窗体中 2、只需要调整…

辛苦半天做出来的,如果觉得好用,记得点赞

效果图如下:

具体操作:

1 、添加代码(代码在下面),重新生成下整个工程,在工具栏中就出现控件,将控件拖到窗体中

2、只需要调整这些参数就行

3. 常用事件

4. 下面是代码 ,直接复制,将顶部 namespace 名改成你的工程名称就能用了 。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace 视频下载和播放
{public class LTrackBar : Control{public LTrackBar(){SetStyle(ControlStyles.AllPaintingInWmPaint, true);SetStyle(ControlStyles.OptimizedDoubleBuffer, true);CreateControl();}[Category("DemoUI"), Description("背景条颜色")]/// <summary>/// 未滑按钮/// </summary>private Color _BarButtonColor = Color.FromArgb(0, 0, 200); // 浅绿色public Color L_BarButtonColor{get { return _BarButtonColor; }set{_BarButtonColor = value;Invalidate();}}/// <summary>/// 未滑过的区域颜色/// </summary>private Color _BarColor = Color.FromArgb(128, 255, 128); // 浅绿色public Color L_BarColor{get { return _BarColor; }set{_BarColor = value;Invalidate();}}/// <summary>/// 已滑过的区域颜色/// </summary>private Color _SliderColor = Color.FromArgb(0, 200, 0); // 浅绿色public Color L_SliderColor{get { return _SliderColor; }set{_SliderColor = value;Invalidate();}}/// <summary>/// 圆角/// </summary>private bool _IsRound = true;public bool L_IsRound {get { return _IsRound; }set {_IsRound = value;Invalidate();}}/// <summary>/// 最小值/// </summary>private int _Minimum = 0;public int L_Minimum {get { return _Minimum; }set {_Minimum = Convert.ToInt32(value);if (_Minimum >= _Maximum) { _Minimum = _Maximum - 1; }if (_Minimum < 0) { _Minimum = 0; }if (_Value < _Minimum) { _Value = _Minimum; }Invalidate();}}/// <summary>/// 最大值/// </summary>private int _Maximum = 100;public int L_Maximum{get { return _Maximum; }set{_Maximum = Convert.ToInt32(value);if (_Minimum >= _Maximum) { _Maximum = _Minimum + 1; }if (_Value > _Minimum) { _Value = _Minimum; }Invalidate();}}/// <summary>/// 添加 滑块值改变 委托事件/// </summary>/// <param name="sender"></param>/// <param name="e"></param>public delegate void LValueChangedEventHandler(object sender, LEventArgs e);public event LValueChangedEventHandler LValueChanged;/// <summary>/// 滑块的当前值/// </summary>private int _Value = 0;public int L_Value {get { return _Value; }set {_Value = value;if (_Value > _Maximum) { _Value = _Maximum; }if (_Value < _Minimum) { _Value = _Minimum; }Invalidate();LValueChanged?.Invoke(this, new LEventArgs(_Value));}}/// <summary>/// 滑块的方向/// </summary>private Orientation _Orientation = Orientation.Horizontal_LR;public Orientation L_Orientation{get { return _Orientation; }set {Orientation old = _Orientation;_Orientation = value;if (old != _Orientation){Size = new Size(Size.Height, Size.Width);}}            }/// <summary>/// 滑块的高度/// </summary>private int _BarSize = 10;public int L_BarSize{get { return _BarSize; }set{_BarSize = value;if (_BarSize < 3) _BarSize = 3;if (_Orientation == Orientation.Horizontal_LR){Size = new Size(Width , _BarSize);}else{ Size = new Size(_BarSize,Height);}}}/// <summary>/// 实现只能调整宽度/高度,需要重写SetBoundsCore方法/// </summary>protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified){if (_Orientation == Orientation.Horizontal_LR)base.SetBoundsCore(x, y, width, _BarSize, specified);elsebase.SetBoundsCore(x, y, _BarSize, height, specified);}MouseStatus mouseStatus;private PointF mousePoint;/// <summary>/// 尺寸变化是刷新/// </summary>/// <param name="e"></param>protected override void OnSizeChanged(EventArgs e){base.OnSizeChanged(e);Invalidate();}protected override void OnPaint(PaintEventArgs e){base.OnPaint(e);pValueToPoint();e.Graphics.SmoothingMode = SmoothingMode.HighQuality;float barSizeRatio = 0.7f;if (_BarSize < 15)barSizeRatio = 0.5f;Pen penBarBack = new Pen(_BarColor, _BarSize * barSizeRatio);Pen penBarFore = new Pen(_SliderColor, _BarSize * barSizeRatio);float fCapWidth = _BarSize;float fCapHalfWidth = _BarSize / 2.0f;if (_IsRound){      penBarBack.StartCap = LineCap.Round;penBarBack.EndCap = LineCap.Round;penBarFore.StartCap = LineCap.Round;penBarFore.EndCap = LineCap.Round;}float fPointValue = 0;if (_Orientation == Orientation.Horizontal_LR){e.Graphics.DrawLine(penBarBack, fCapHalfWidth, Height / 2f, Width - fCapHalfWidth, Height / 2f);fPointValue = mousePoint.X;if (fPointValue < fCapHalfWidth) fPointValue = fCapHalfWidth;if (fPointValue > Width - fCapHalfWidth) fPointValue = Width - fCapHalfWidth;}else{e.Graphics.DrawLine(penBarBack, Width / 2f, fCapHalfWidth, Width / 2f, Height - fCapHalfWidth);fPointValue = mousePoint.Y;if (fPointValue < fCapHalfWidth) fPointValue = fCapHalfWidth;if (fPointValue > Height - fCapHalfWidth) fPointValue = Height - fCapHalfWidth;}Brush brush = new SolidBrush(_BarButtonColor);if (_Orientation == Orientation.Horizontal_LR){e.Graphics.DrawLine(penBarFore, fCapHalfWidth, Height / 2f, fPointValue, Height / 2f);e.Graphics.FillEllipse(brush, fPointValue - fCapHalfWidth, Height / 2f - fCapHalfWidth, fCapWidth-1, fCapWidth-1);}else{e.Graphics.DrawLine(penBarFore, Width / 2f, fPointValue, Width / 2f, Height - fCapHalfWidth);e.Graphics.FillEllipse(brush, Width / 2f - fCapHalfWidth, fPointValue - fCapHalfWidth, fCapWidth-1, fCapWidth - 1);}}private void pValueToPoint(){float fCapWidth = _BarSize;float fCapHalfWidth = _BarSize / 2.0f;float fRatio = Convert.ToSingle(_Value - _Minimum) / (_Maximum - _Minimum);if (_Orientation == Orientation.Horizontal_LR){float fPointValue = fRatio * (Width - fCapWidth) + fCapHalfWidth;mousePoint = new PointF(fPointValue, fCapHalfWidth);}else{float fPointValue = Height - fCapHalfWidth - fRatio * (Height - fCapWidth);mousePoint = new PointF(fCapHalfWidth, fPointValue);}}protected override void OnMouseDown(MouseEventArgs e){mouseStatus = MouseStatus.Down;mousePoint = e.Location;pPointToValue();Invalidate();base.OnMouseDown(e);     }protected override void OnMouseUp(MouseEventArgs e){mouseStatus = MouseStatus.Up;base.OnMouseUp(e); }protected override void OnMouseMove(MouseEventArgs e){if (mouseStatus == MouseStatus.Down){mousePoint = e.Location;pPointToValue();Invalidate();}base.OnMouseMove(e);}protected override void OnMouseEnter(EventArgs e){mouseStatus = MouseStatus.Enter;base.OnMouseEnter(e);    }protected override void OnMouseLeave(EventArgs e){           mouseStatus = MouseStatus.Leave;base.OnMouseLeave(e);}/// <summary>/// 计算滑块位置/// </summary>private void pPointToValue(){float fCapHalfWidth = 0;float fCapWidth = 0;if (_IsRound){fCapWidth = _BarSize;fCapHalfWidth = _BarSize * 0.5f;}// 计算滑块的位置if (_Orientation == Orientation.Horizontal_LR){float fRatio = Convert.ToSingle(mousePoint.X - fCapHalfWidth) / (Width - fCapWidth);_Value = Convert.ToInt32(fRatio * (_Maximum - _Minimum) + _Minimum);}else{float fRatio = Convert.ToSingle(Height - mousePoint.Y - fCapHalfWidth) / (Height - fCapWidth);_Value = Convert.ToInt32(fRatio * (_Maximum - _Minimum) + _Minimum);}if (_Value < _Minimum)_Value = _Minimum;else if (_Value > _Maximum)_Value = _Maximum;LValueChanged?.Invoke(this, new LEventArgs(_Value));}}public class LEventArgs : EventArgs{public LEventArgs(object value){Value = value;}public object Value { get; set; }}/// <summary>/// 控件方向/// </summary>public enum Orientation{ /// <summary>/// 水平方向 (从左到右)/// </summary>Horizontal_LR,/ <summary>/ 水平方向 (从右到左)/ </summary>//Horizontal_RL,/// <summary>/// 垂直方向 (从下到上)/// </summary>Vertical_BT,/ <summary>/  垂直方向 (从上到下)/ </summary>//Vertical_TB,}/// <summary>/// 鼠标状态/// </summary>public enum MouseStatus{ /// <summary>/// 鼠标进入/// </summary>Enter,/// <summary>/// 鼠标离开/// </summary>Leave,/// <summary>/// 鼠标按下/// </summary>Down,/// <summary>/// 鼠标放开/// </summary>Up}}


文章转载自:
http://unweeded.c7512.cn
http://goniometric.c7512.cn
http://jibboom.c7512.cn
http://mitochondrion.c7512.cn
http://scorpaenoid.c7512.cn
http://digestibility.c7512.cn
http://senryu.c7512.cn
http://guerrillero.c7512.cn
http://hyperextension.c7512.cn
http://palpable.c7512.cn
http://proscribe.c7512.cn
http://gigantesque.c7512.cn
http://polyglotter.c7512.cn
http://santera.c7512.cn
http://belletrism.c7512.cn
http://pareu.c7512.cn
http://osmic.c7512.cn
http://decimalize.c7512.cn
http://wayahead.c7512.cn
http://footing.c7512.cn
http://spheroidic.c7512.cn
http://paced.c7512.cn
http://neuropharmacology.c7512.cn
http://tenor.c7512.cn
http://dogmatize.c7512.cn
http://aetiology.c7512.cn
http://eris.c7512.cn
http://yawey.c7512.cn
http://elocution.c7512.cn
http://foolery.c7512.cn
http://fraternise.c7512.cn
http://gormless.c7512.cn
http://spongious.c7512.cn
http://intension.c7512.cn
http://oceanian.c7512.cn
http://whiffletree.c7512.cn
http://samovar.c7512.cn
http://owl.c7512.cn
http://snakemouth.c7512.cn
http://catenative.c7512.cn
http://striking.c7512.cn
http://photogrammetry.c7512.cn
http://cloggy.c7512.cn
http://achromatophil.c7512.cn
http://waterishlogged.c7512.cn
http://swarm.c7512.cn
http://exstrophy.c7512.cn
http://exactitude.c7512.cn
http://clapstick.c7512.cn
http://devisable.c7512.cn
http://upriver.c7512.cn
http://oiticica.c7512.cn
http://bluebell.c7512.cn
http://millwork.c7512.cn
http://radiocompass.c7512.cn
http://playclothes.c7512.cn
http://latish.c7512.cn
http://tikker.c7512.cn
http://whidah.c7512.cn
http://illustriously.c7512.cn
http://undersell.c7512.cn
http://subsystem.c7512.cn
http://gobo.c7512.cn
http://irc.c7512.cn
http://polyatomic.c7512.cn
http://aberration.c7512.cn
http://aristocrat.c7512.cn
http://finitism.c7512.cn
http://undergo.c7512.cn
http://tranquilization.c7512.cn
http://rewake.c7512.cn
http://menat.c7512.cn
http://aristo.c7512.cn
http://sphingid.c7512.cn
http://prolepsis.c7512.cn
http://cursillo.c7512.cn
http://noncancelability.c7512.cn
http://radiopacity.c7512.cn
http://crackle.c7512.cn
http://pediculosis.c7512.cn
http://savourless.c7512.cn
http://overcurtain.c7512.cn
http://sophist.c7512.cn
http://unemotionality.c7512.cn
http://recvee.c7512.cn
http://symbology.c7512.cn
http://investigator.c7512.cn
http://sanguinarily.c7512.cn
http://pandurate.c7512.cn
http://sparge.c7512.cn
http://skatebarrow.c7512.cn
http://joyless.c7512.cn
http://denim.c7512.cn
http://conquest.c7512.cn
http://roughout.c7512.cn
http://nephritic.c7512.cn
http://yellowknife.c7512.cn
http://chappal.c7512.cn
http://autography.c7512.cn
http://fawn.c7512.cn
http://www.zhongyajixie.com/news/79957.html

相关文章:

  • 广州市用工备案在哪个网站做产品网络推广方案
  • 赤水网站建设949公社招聘信息
  • 网站开发中的抓包工具软文推广
  • 提供网站制作视频互联网推广选择隐迅推
  • 如何向百度提交网站seo职位招聘
  • css3 动画网站抖音广告投放平台官网
  • 网站公司怎么做运营商链接生成二维码
  • 河间做网站的公司竞价托管外包公司
  • 网站建设显示危险微信广告
  • 网站开发图片素材网络策划营销
  • 代做备案网站优化推广服务
  • 建设网站课程设计摘要运营推广公司
  • 无代码建站软件网推怎么推广
  • 和黑人做网站旅行网站排名前十名
  • 佛山新网站制作宁波好的seo外包公司
  • 做网站服务器收费吗网站制作过程
  • 徐州市工程造价信息网周口seo推广
  • 网站制作无锡百度手机浏览器
  • 个人虚拟网站一份完整的营销策划书
  • 做防水广告在哪个网站最好宁波seo推广优化公司
  • 个人怎么做网站推广百度网络科技有限公司
  • 海口网站设计建设搜索关键词然后排名怎样提升
  • 做网站做图电脑需要什么配置腾讯云建站
  • 网站app封装怎么做关键词挖掘ppt
  • 做网站咸阳百度宣传广告要多少钱
  • web网站建设与计划论文提高工作效率的方法不正确的是
  • 珠海做企业网站多少钱四川网站seo
  • 做静态页面的网站seo方式包括
  • 国外做机械设计任务的网站搜百度盘
  • 深圳手工外发加工网奉化云优化seo