摘要:
要实现TextBox文本框输入限制 ,先要为TextBox添加KeyPress事件。 代码如下: //数字、小数点(最大到2位)、退格键、负号 private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if ((e.Ke 阅读全文
摘要:
方式一:yum方式下载安装 1、查找java相关的列表 yum -y list java* 1、查找java相关的列表 yum -y list java* 2、安装jdk yum install java-1.8.0-openjdk.x86_64 3、完成安装后验证 java -version 4、 阅读全文
摘要:
class LptControl { private string LptStr = "lpt1"; public LptControl(string l_LPT_Str) { LptStr = l_LPT_Str; } [StructLayout(LayoutKind.Sequential)] p 阅读全文
摘要:
1. 使用水晶报表进行打印。可以参考:https://www.cnblogs.com/aitong/p/10717786.html 2. 在 PrintDocument 对象上进行绘图,然后使用其打印方法直接打印。 using CrystalDecisions.CrystalReports.Engi 阅读全文
摘要:
库: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace BarCodeLibrary { public class Ze 阅读全文
摘要:
今天update access数据库时,使用了参数化的方式,结果不报错,但是数据也没有更新。后来发现access使用参数化时,参数位置必须和赋值顺序相同才行,否则更新时就会出现数据无法更新但是也不报错的怪现象。 例如:update tablename set [a]=@a,[b]=@b where 阅读全文
摘要:
Access 的top和order by 的问题 今天用Access做sql查询的时候出现了比较奇怪的问题:用:select top 10 * from [BBSXP_Threads] where IsDel=0 order by views却返回 大于 10 行的记录,根据理论应该是返回 按 vi 阅读全文
摘要:
DataTable dt = new DataTable("Datas"); DataColumn dc = null; //dt新增列 dc=dt.Columns.Add("id", Type.GetType("System.Int32")); //课件id dc = dt.Columns.Add 阅读全文
摘要:
/// <summary> /// 时间戳 /// </summary> /// <param name="dateTime"></param> /// <returns></returns> public static Int64 getTimeStamp(DateTime dateTime) { 阅读全文
摘要:
for (int i = 0; i < dataTable.Rows.Count; i++) { for (int j = 0; j < dataTable.Columns.Count; j++) { Console.WriteLine(dataTable.Rows[i][j].ToString() 阅读全文