
C#
flltt
这个作者很懒,什么都没留下…
展开
-
C#操作EXCEL
using System.Reflection; using Excel11=Microsoft.Office.Interop.Excel; 全表自动列宽 mysheet.Cells.Select(); mysheet.Cells.Columns.AutoFit(); 合并 myRange.Merge(Missing.Value); 粗体设置转载 2017-07-22 10:47:59 · 302 阅读 · 0 评论 -
C# 串口设置笔记
using System.IO.Ports; m_SerialPort.Parity = Parity.None;//奇偶校验 m_SerialPort.StopBits = StopBits.One;//停止位 m_SerialPort.Handshake = Handshake.None;//控制协议 m_原创 2017-12-05 13:26:20 · 466 阅读 · 0 评论 -
.NET C# Tostring() format 格式化字符串大全
.NET C# Tostring() format 格式化字符串大全 最近在做第三方支付,用到了ISO8583包,因为有些域需要特定的格式,所以把常用的都搬过来了,以备不时之需,知识是无限的,大脑也是无限的。 C 货币 2.5.ToString("C") ¥2.50转载 2017-12-05 13:26:52 · 456 阅读 · 0 评论 -
C#中关于DataGridView行和列的背景色-前景色设置
关于DataGridView行和列的背景色-前景色设置1.设定DataGridView全部单元格的Style DataGridView内所有单元格的Style变更,可以使用DataGridView对象的DefaultCellStyle属性实现。12345//包含Header所有的单元格的背景色为黄色DataGridView1.DefaultCellStyle.BackColor = Color....转载 2018-05-30 09:44:28 · 419 阅读 · 0 评论