摘要: /// <summary> /// 以枚举名称为Section,枚举值为Key的ini配置文件的读写 /// </summary> public class IniFileOperate : IniRW { protected Dictionary<object, string> _DefaultP 阅读全文
posted @ 2019-11-08 17:04 Bridgebug 阅读(212) 评论(0) 推荐(0)
摘要: 1.对ini文件进行序列化和反序列化 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; public class IniDese 阅读全文
posted @ 2019-11-08 17:00 Bridgebug 阅读(452) 评论(0) 推荐(0)
摘要: /// <summary> /// 根据条件删除字典中所有符合的键值对 /// </summary> /// <returns></returns> public static int RemoveAll<TKey, TValue>(this IDictionary<TKey, TValue> so 阅读全文
posted @ 2019-11-08 16:48 Bridgebug 阅读(303) 评论(0) 推荐(0)
摘要: 1.代码编辑 CTRL+E,D 格式化所选文档全部代码 CTRL+E,C / CTRL+K,CTRL+C 注释选定内容 CTRL+E,U / CTRL+K,CTRL+U 取消选定注释内容 CTRL+SHIFT+V 剪贴板循环 CTRL+DELETE 删除至词尾 CTRL+BACKSPACE 删除至词 阅读全文
posted @ 2019-10-23 09:03 Bridgebug 阅读(637) 评论(0) 推荐(0)
摘要: CSDN下载: https://download.csdn.net/download/breakbridge/12251843 public partial class MesBox : Form { int _maxWidth = 802; int _maxHeight = 704; int _b 阅读全文
posted @ 2019-09-29 09:12 Bridgebug 阅读(945) 评论(0) 推荐(0)
摘要: sysobjects 表结构: 列名 数据类型 描述 name sysname 对象名,常用列 id int 对象标识号 xtype char(2) 对象类型。常用列。xtype可以是下列对象类型中的一种: C = CHECK 约束 D = 默认值或 DEFAULT 约束 F = FOREIGN K 阅读全文
posted @ 2019-09-18 16:15 Bridgebug 阅读(194) 评论(0) 推荐(0)
摘要: public class TextBoxNumber : TextBox { public TextBoxNumber() { this.KeyPress += textBox_KeyPress; this.Leave += textBox_Leave; } double _maxValue = i 阅读全文
posted @ 2019-09-09 16:37 Bridgebug 阅读(580) 评论(0) 推荐(0)
摘要: Microsoft Access 数据类型 数据类型描述存储 Text 用于文本或文本与数字的组合。最多 255 个字符。 Memo Memo 用于更大数量的文本。最多存储 65,536 个字符。 注释:无法对 memo 字段进行排序。不过它们是可搜索的。 Byte 允许 0 到 255 的数字。 阅读全文
posted @ 2019-09-09 10:39 Bridgebug 阅读(190) 评论(0) 推荐(0)
摘要: MySQL 数据类型 在 MySQL 中,有三种主要的类型:文本、数字和日期/时间类型。 Text 类型: 数据类型 描述 CHAR(size) 保存固定长度的字符串(可包含字母、数字以及特殊字符)。在括号中指定字符串的长度。最多 255 个字符。 VARCHAR(size) 保存可变长度的字符串( 阅读全文
posted @ 2019-09-09 10:39 Bridgebug 阅读(106) 评论(0) 推荐(0)
摘要: SQL Server 数据类型 Character 字符串: 数据类型描述存储 char(n) 固定长度的字符串。最多 8,000 个字符。 n varchar(n) 可变长度的字符串。最多 8,000 个字符。 varchar(max) 可变长度的字符串。最多 1,073,741,824 个字符。 阅读全文
posted @ 2019-09-09 10:38 Bridgebug 阅读(88) 评论(0) 推荐(0)
摘要: 1 using System.Data; 2 using System.Data.SqlClient; 3 4 namespace SQLServer 5 { 6 public class SQLServerDataBase 7 { 8 string _connString = "server=12 阅读全文
posted @ 2019-08-30 16:51 Bridgebug 阅读(14268) 评论(0) 推荐(1)
摘要: 1.开启进程 using System.Diagnostics; ProcessStartInfo process = new ProcessStartInfo(); process.FileName = "要开启的进程路径"; string arg1 = "进程参数1"; string arg2 阅读全文
posted @ 2019-06-21 11:24 Bridgebug 阅读(1626) 评论(0) 推荐(0)
摘要: string ip = “”; System.Net.IPAddress ipAddress; if (System.Net.IPAddress.TryParse(ip, out ipAddress)) { return true; } else { return false; } 阅读全文
posted @ 2019-06-14 15:38 Bridgebug 阅读(1294) 评论(0) 推荐(0)
摘要: https://referencesource.microsoft.com/download.html 阅读全文
posted @ 2019-05-08 14:24 Bridgebug 阅读(262) 评论(0) 推荐(0)
摘要: /// <summary> /// 将一个文件夹下的所有东西复制到另一个文件夹 (可备份文件夹) /// </summary> /// <param name="sourceDire">源文件夹全名</param> /// <param name="destDire">目标文件夹全名</param> 阅读全文
posted @ 2019-04-29 10:11 Bridgebug 阅读(2026) 评论(0) 推荐(0)
摘要: 1.Panel中控件Location设置是基于界面上位置 《(0,0)永远在左上角》,和Scroll没关系 2.当滑动Scroll时,Panel中的所有控件的Location都发生了改变 3.当Scroll不在原始位时设置控件Location为(0,0)会导致Panel上方有空白 阅读全文
posted @ 2019-04-18 16:17 Bridgebug 阅读(559) 评论(0) 推荐(0)
摘要: 问题:在vs2010中的窗体设计时,明明在designer.cs中有控件的代码,但是在窗体设计器中没有显示控件 解决: 看窗体构造函数中是否有 InitializeComponent(); 有可能在designer.cs中没有将控件添加入父控件 例如:this.Controls.Add(this.g 阅读全文
posted @ 2019-03-05 13:43 Bridgebug 阅读(1652) 评论(0) 推荐(0)
摘要: 百度网盘三方dll ps:. net framework 4.0 client profile 下不行 using Spire.Pdf; using Spire.Pdf.Graphics; using System.Diagnostics; PdfDocument doc = new PdfDocu 阅读全文
posted @ 2019-02-12 14:53 Bridgebug 阅读(570) 评论(0) 推荐(0)
摘要: using System.Windows.Forms; /// <summary> /// 解决加载闪烁,背景透明等问题 /// </summary> protected override CreateParams CreateParams { get { var parms = base.Crea 阅读全文
posted @ 2019-02-12 14:16 Bridgebug 阅读(268) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Diagnostics; 阅读全文
posted @ 2019-02-12 14:11 Bridgebug 阅读(1370) 评论(0) 推荐(0)
摘要: Point _downPoint; private void button1_MouseDown(object sender, MouseEventArgs e) { _downPoint = new Point(e.X, e.Y); } private void button1_MouseMove 阅读全文
posted @ 2019-02-12 14:00 Bridgebug 阅读(217) 评论(0) 推荐(0)
摘要: 设置 DropDownStyle 为 DropDownList 将 DrawMode 改为 OwnerDrawFixed 添加 DrawItem 事件 样式就变为下面这样,但是只能在列表中选择,而不能手动输入 public class ComBox : ComboBox { public ComBo 阅读全文
posted @ 2019-02-12 13:49 Bridgebug 阅读(2531) 评论(0) 推荐(0)
摘要: using System.Runtime.InteropServices; //WinAPI引用命名空间 /// <summary> /// 将Byte转换为结构体类型 /// </summary> /// <param name="bytes"></param> /// <param name=" 阅读全文
posted @ 2019-01-21 10:30 Bridgebug 阅读(570) 评论(0) 推荐(0)
摘要: 打开解决方案文件夹,显示隐藏文件夹,找到下面文件夹并删除,重新打开后就OK了 阅读全文
posted @ 2018-11-08 13:56 Bridgebug 阅读(285) 评论(0) 推荐(0)