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

上海橙网站设计公司主题设置wordpress

上海橙网站设计公司,主题设置wordpress,经典的企业网站,宁波哪里做网站IDE: VS2019 项目模板#xff1a;C# windows 窗体应用(.NET Framework) 【参考】 B站上教程C#Chart控件画折线图的使用#xff0c;关于Chart控件的属性#xff0c;介绍得非常详细。B站上教程C#上位机Chart控件实时曲线终极讲解#xff0c;对鼠标滚轮事件等#xff0c;多个…IDE: VS2019 项目模板C# windows 窗体应用(.NET Framework) 【参考】 B站上教程C#Chart控件画折线图的使用关于Chart控件的属性介绍得非常详细。B站上教程C#上位机Chart控件实时曲线终极讲解对鼠标滚轮事件等多个事件的讲解较为详细。工具箱中找不到Chart控件怎么办-VS/C#添加chart控件 项目结构非常简单一个窗体ArtDAQ.cs和一个主程序Program 【遇到的问题】 Timer控件拖拽到设计器上显示不出来无法通过双击的方式给Timer控件添加事件 手动写了一个InitializeTimer函数在该函数中给Timer控件的对象timer1绑定了一个事件timer1_Tick timer1.Tick new EventHandler(timer1_Tick);把InitializeTimer函数添加进ArtDAQ的构造函数中然后在后面继续写timer1_Tick函数。 ArtDAQ.cs代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;namespace ArtDAQ {public partial class ArtDAQ : Form{// 设置Tiemr事件的间隔事件private void InitializeTimer(){// 设置Timer事件的间隔时间在此例中为2000毫秒timer1.Interval 100;// 启动Timer// timer1.Start();// 绑定Tick事件timer1.Tick new EventHandler(timer1_Tick);}// 构造函数public ArtDAQ(){InitializeComponent();InitializeTimer();}// 触发按钮private void button1_Click(object sender, EventArgs e){if (timer1.Enabled false){// timer1.Enabled true;timer1.Start();MessageBox.Show(timer1.Enabled.ToString());}else{timer1.Enabled false;}}// Timer的事件// 随机数Random rd new Random(); int x 0;int y 0;private void timer1_Tick(object sender, EventArgs e){y rd.Next(0, 1001);chart1.Series[0].Points.AddXY(x, y);if(x101){timer1.Enabled false;// timer1.Stop();}x;}} }窗体设计文件ArtDAQ.Designer.cs namespace ArtDAQ {partial class ArtDAQ{/// summary/// Required designer variable./// /summaryprivate System.ComponentModel.IContainer components null;/// summary/// Clean up any resources being used./// /summary/// param namedisposingtrue if managed resources should be disposed; otherwise, false./paramprotected override void Dispose(bool disposing){if (disposing (components ! null)){components.Dispose();}base.Dispose(disposing);}#region Windows Form Designer generated code/// summary/// Required method for Designer support - do not modify/// the contents of this method with the code editor./// /summaryprivate void InitializeComponent(){this.components new System.ComponentModel.Container();System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 new System.Windows.Forms.DataVisualization.Charting.ChartArea();System.Windows.Forms.DataVisualization.Charting.Legend legend3 new System.Windows.Forms.DataVisualization.Charting.Legend();System.Windows.Forms.DataVisualization.Charting.Series series7 new System.Windows.Forms.DataVisualization.Charting.Series();System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 new System.Windows.Forms.DataVisualization.Charting.DataPoint(0D, 0D);System.Windows.Forms.DataVisualization.Charting.Series series8 new System.Windows.Forms.DataVisualization.Charting.Series();System.Windows.Forms.DataVisualization.Charting.Series series9 new System.Windows.Forms.DataVisualization.Charting.Series();System.Windows.Forms.DataVisualization.Charting.Title title3 new System.Windows.Forms.DataVisualization.Charting.Title();this.chart1 new System.Windows.Forms.DataVisualization.Charting.Chart();this.timer1 new System.Windows.Forms.Timer(this.components);this.button1 new System.Windows.Forms.Button();((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit();this.SuspendLayout();// // chart1// chartArea3.AxisX.Interval 5D;chartArea3.AxisX.Maximum 100D;chartArea3.AxisX.Minimum 0D;chartArea3.AxisY.Interval 5D;chartArea3.AxisY.Maximum 100D;chartArea3.AxisY.Minimum 0D;chartArea3.CursorX.IsUserEnabled true;chartArea3.CursorX.IsUserSelectionEnabled true;chartArea3.Name ChartArea1;chartArea3.Position.Auto false;chartArea3.Position.Height 90F;chartArea3.Position.Width 90F;chartArea3.Position.X 3F;chartArea3.Position.Y 10F;this.chart1.ChartAreas.Add(chartArea3);legend3.Name Legend1;this.chart1.Legends.Add(legend3);this.chart1.Location new System.Drawing.Point(19, 12);this.chart1.Name chart1;series7.ChartArea ChartArea1;series7.ChartType System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;series7.Legend Legend1;series7.Name Series1;series7.Points.Add(dataPoint3);series8.ChartArea ChartArea1;series8.ChartType System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;series8.Legend Legend1;series8.Name Series2;series9.ChartArea ChartArea1;series9.ChartType System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;series9.Legend Legend1;series9.Name Series3;this.chart1.Series.Add(series7);this.chart1.Series.Add(series8);this.chart1.Series.Add(series9);this.chart1.Size new System.Drawing.Size(692, 375);this.chart1.TabIndex 0;this.chart1.Text chart1;title3.BorderWidth 2;title3.Font new System.Drawing.Font(Microsoft Sans Serif, 15F, System.Drawing.FontStyle.Bold);title3.ForeColor System.Drawing.Color.CornflowerBlue;title3.Name Title1;title3.Text Chart1;this.chart1.Titles.Add(title3);// // timer1// // this.timer1.Tick new System.EventHandler(this.timer1_Tick);// // button1// this.button1.Location new System.Drawing.Point(734, 51);this.button1.Name button1;this.button1.Size new System.Drawing.Size(93, 47);this.button1.TabIndex 1;this.button1.Text 显示曲线;this.button1.UseVisualStyleBackColor true;this.button1.Click new System.EventHandler(this.button1_Click);// // ArtDAQ// this.AutoScaleDimensions new System.Drawing.SizeF(8F, 15F);this.AutoScaleMode System.Windows.Forms.AutoScaleMode.Font;this.ClientSize new System.Drawing.Size(875, 473);this.Controls.Add(this.button1);this.Controls.Add(this.chart1);this.Name ArtDAQ;this.Text ArtDAQ;((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit();this.ResumeLayout(false);}#endregionprivate System.Windows.Forms.DataVisualization.Charting.Chart chart1;private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Button button1;} }【项目地址】 链接https://pan.baidu.com/s/1HhBg620l0nMsSQ07j8MdOQ 提取码6wnn –来自百度网盘超级会员V5的分享
http://www.zqtcl.cn/news/16868/

相关文章:

  • 常州市建设工程管理中心网站外贸是什么意思
  • 动易学校网站网站建设需求分析流程
  • 甘肃省建设厅网站首页绿色建筑企业展厅建筑
  • 俄华网站建设厦门免费网站建设
  • 沈阳网站推广排名方案网站怎么算抄袭
  • 公司增加英文网站要怎么做wordpress ping插件
  • 公司网站模板个人公众号申请要钱吗
  • 高端品牌网站建设有哪些优化大师免安装版
  • 关键词堆砌的作弊网站十大房产中介软件
  • 沈阳市网站设计制作公司外贸建站 wordpress
  • 贵州省两学一做网站敬请期待同义词
  • 网站后台管理员密码忘记茂名住房和城乡建设局网站
  • 网站建设与开发学习随州seo优化
  • 电子商务网站建设与管理项目计划书个人社保缴费信息查询
  • 微信网站服务器要求网站qq弹窗代码
  • 微信网站设计尺寸信息安全工程师含金量
  • ps手机网站制作网站关键词进前三
  • 如何搭建自己的网站服务器地址潜江网页
  • 南川集团网站建设公司起名吉祥字大全
  • 河北省廊坊市建设网站400大看免费行情的软件
  • 商务网站开发报告建设网站公司那里好相关的热搜问题解决方案
  • 网站开发多用什么语言建公司网站设计网站公司
  • 织梦的cms哪些网站怎么把网站加入黑名单
  • 网站接任务来做电子商务网站建设管理答案
  • 秦皇岛企业建设网站秀山网站建设端午节手抄报获奖
  • 什么网站代做毕业设计比较好中国设计人才网
  • 大门户wordpress主题破解版贵州seo学校
  • 网站建设 合作协议杭州建设网 执法人员名单
  • 营销型网站建设遨龙河北注册公司流程和费用
  • php mysql网站开发项目式教程制作响应式网站