03 2019 档案
摘要:1) 列冻结 DataGridViewColumn.Frozen 属性为 True 时, 该列左侧的所有列被固定, 横向滚动时固定列不随滚动条滚动而左右移动。这对于重要列固定显示很有用。 [VB.NET] ' DataGridView1的左侧2列固定 DataGridView1.Columns(1)
阅读全文
摘要:private void Form1_Load(object sender, EventArgs e) { string str = "server=192.168.100.222;user=sa;pwd=p@ssw1rd;database=pwd1"; SqlConnection mycon =
阅读全文
摘要:两种方法 第一种 DataGridview1.Rows[i].DefultCellStyle.backcolor 第二种 AlternatingRowsDefutCellstyle 属性 获取或设置应用于DataGridview的奇数行的默认单元格样式。 RowsDefultCellStyle 属性
阅读全文
摘要:关于DataGridView行和列的背景色-前景色设置 1.设定DataGridView全部单元格的Style DataGridView内所有单元格的Style变更,可以使用DataGridView对象的DefaultCellStyle属性实现。 1 2 3 4 5 //包含Header所有的单元格
阅读全文
摘要:例子一: private void dataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { { if(e.RowIndex < dataGridView1.Rows.Count -1) { Data
阅读全文
摘要:public Form1() { InitializeComponent(); LoadData(); } private void LoadData() { DataTable tblDatas = new DataTable(); tblDatas.Columns.Add("ID", Type.
阅读全文
摘要:方法一、DataGridView隔行显示不同的颜色 AlternatingRowsDefaultCellStyle 属性 获取或设置应用于 DataGridView 的奇数行的默认单元格样式。RowsDefaultCellStyle 属性 获取或设置应用于 DataGridView 的行单元格的默认
阅读全文
摘要:/// <summary>/// 判断字符串是否是数字/// </summary>public static bool IsNumber(string s){ if (string.IsNullOrWhiteSpace(s)) return false; const string pattern =
阅读全文
摘要:C#判断一个string是否为数字 案一:Try...Catch(执行效率不高) private bool IsNumberic(string oText) { try { int var1=Convert.ToInt32 (oText); return true; } catch { return
阅读全文
摘要:使用下面的代码您可以在运行时修改最大和最小值: 你可以分别设置坐标轴刻度最大和最小值的自动化属性。例如:
阅读全文
摘要:Random random = new Random(); // Color SeriesColor; int SeriesIndex=0; tChart1.Series.Clear(); Steema.TeeChart.Styles.Points pieSeries; for (int t = 0
阅读全文
摘要:Random random = new Random(); // Steema.TeeChart.Styles.Points pieSeries1; Steema.TeeChart.Styles.Points pieSeries2; Steema.TeeChart.Styles.Points pie
阅读全文
摘要:using System;using System.Collections;using System.ComponentModel;using System.Drawing; using System.Windows.Forms; namespace Steema.TeeChart.Samples{
阅读全文
摘要:using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data; using System.Windows.Forms; namespace Steema
阅读全文
摘要:private Steema.TeeChart.Styles.Pie pieSeries1; private Steema.TeeChart.Styles.Pie pieSeries2; private Steema.TeeChart.Styles.Pie pieSeries3; private S
阅读全文
摘要:在使用 TeeChart 图表的过程中,经常会遇到坐标轴方面的问题。本文对TeeChart 坐标轴的相关问题进行了汇总:1、如何实现TeeChart图表坐标轴的放大与缩小功能?答:设置BottomAxis或者LeftAxis的Automatic:=false并同时设置Minimum,Maximum属
阅读全文
摘要:tChart1.Series.Clear(); tChart1.Series.Add(new Steema.TeeChart.Styles.Bar());tChart1.Series[0].Clear();tChart1.Series[0].Add(123, "ABC", Color.Red);tC
阅读全文
摘要:我用的是C# 从网上看到资料拷贝过来备忘,共同学习下: 设置chart标题:axTChart1.Header.Text.Add("标题"); 修改标题:axTChart1.Header.Text.set_Item(index, "修改后的标题"); 表头标题清除: axTChart1.Header.
阅读全文
摘要:https://blog.csdn.net/wuyuanjingni/article/details/8585810
阅读全文
摘要:关于TeeChart使用我会持续更新 这篇文章中我是在Winform窗体使用TeeChart2011控件,通过定时器实现了实时绘制曲线图(三个序列)。 先上一下效果图: 1.TeeChart2011.ocx的注册 TeeChart2011.ocx下载地址 下载好TeeChart2011.ocx后,3
阅读全文
摘要:数据库是否存在某字段 SELECT COUNT(*) FROM USER_TAB_COLUMNS WHERE TABLE_NAME = '表名' AND COLUMN_NAME = '字段名'; 数据库是否存在某张表 select count(*) from user_objects where o
阅读全文
摘要:http://www.360doc.com/content/13/0808/13/7023119_305587473.shtml
阅读全文
摘要:foreach (UltraGridColumn aCol in this.ultraGrid1.DisplayLayout.Bands[0].Columns){this.ultraGrid1.DisplayLayout.Override.RowAlternateAppearance.BackCol
阅读全文
摘要:有时候我们需要让软件带参数运行,使用参数控制软件的部分行为, C#默认窗口应用是不带参数的,不过在Main函数的参数手动加上就可以得到参数了。 举例如下:
阅读全文
摘要:1.问题意义 据说界面程序开发,首选C#(像lebview之类的也很好) 但是,能不能用其他语言开发核心代码,只用C#做界面?毕竟每种语言都有自己擅长的领域. 2.exe程序 比如有个example.exe,能接受4个参数.用cmd的调用方法是 example.exe "1" "a" "2" "3"
阅读全文