随笔分类 - C#
摘要:https://www.2cto.com/database/201805/749421.html https://zhidao.baidu.com/question/107832895.html private void button2_Click(object sender, EventArgs
阅读全文
摘要:https://blog.csdn.net/alisa525/article/details/7350471 dataGridView1.ReadOnly = true ; //禁用编辑功能 方法一:通过手动添加Datatable,再绑定dataGridView DataTable dt = new
阅读全文
摘要:Math.Ceiling();//向上取整 //举一反三 Math.Floor();//向下取整 Math.Round();//四舍六入五取偶 Math.Ceiling();//向上取整 //举一反三 Math.Floor();//向下取整 Math.Round();//四舍六入五取偶
阅读全文
摘要:public static T XmlConvertModel<T>(string xmlStr) where T : class, new() { T t = new T(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xmlSt
阅读全文
摘要:groupPrint.MouseDown += GroupBox1_MouseDown; #region 弹出层移动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "ReleaseCapture")] pub
阅读全文
摘要:https://www.cnblogs.com/mq0036/p/6421946.htmlusing System.Runtime.InteropServices; public class Win32 { public const Int32 AW_HOR_POSITIVE = 0x0000000
阅读全文
摘要:DataTable dt = new DataTable(); dt.Columns.Add("name"); dt.Columns.Add("value"); for (int i = 0; i < pilotPathList.Count; i++) { DataRow dr = dt.NewRo
阅读全文
摘要:string dll32 = System.Windows.Forms.Application.StartupPath + @"\System.Data.SQLite-32.DLL"; string dll64 = System.Windows.Forms.Application.StartupPa
阅读全文
摘要:https://www.cnblogs.com/mq0036/p/7875864.html 一、开发环境 操作系统:Windows 10 X64 开发环境:VS2015 编程语言:C# .NET版本:.NET Framework 4.0 目标平台:X86 二、创建Windows Service 1、
阅读全文
摘要:https://yq.aliyun.com/articles/421700 // DataGridView1的ColumnDisplayIndexChanged事件处理方法private void DataGridView1_ColumnDisplayIndexChanged(object send
阅读全文
摘要:public static IList<T> XmlToEntityList<T>(string xml) where T : new() { XmlDocument doc = new XmlDocument(); try { doc.LoadXml(xml); } catch(Exception
阅读全文
摘要:https://blog.csdn.net/ad13adsa/article/details/82108969 private void dataGridViewX1_EditingControlShowing(object sender, DataGridViewEditingControlSho
阅读全文
摘要:https://www.cnblogs.com/waitingfor/articles/2220669.html object ff = Activator.CreateInstance(tt, null);//创建指定类型实例 https://www.cnblogs.com/guohu/p/449
阅读全文
摘要:https://www.cnblogs.com/zhaogaojian/p/10124629.html vs右键高级设置管理员运行后,每次直接运行使用的是管理员方式,但是如果直接在sln文件上点击使用的是非管理员方式(非管理员模式不能调试IIS启动的web应用)可以通过以下方式实现每次打开都是管理员
阅读全文
摘要:https://www.cnblogs.com/ingstyle/p/4815303.html 第一种方法: DataTable dt = new DataTable(); dt.Columns.Add( "name" ); dt.Columns.Add( "value" ); DataRow dr
阅读全文
摘要:https://cloud.tencent.com/developer/article/1344673
阅读全文
摘要:完美运行 http://bbs.nga.cn/read.php?tid=13292628&rand=492 Win7系统TTS修复-采用原生Win7提取绿色修复 Win7系统TTS修复-采用原生Win7提取绿色修复 一键自动修复,控制面板里有语音识别--从文本到语音可以选择微软语音中文LiLi或英文
阅读全文
摘要:https://blog.csdn.net/sun49842566/article/details/82802297 net 4.0 设置: ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; //.net 4.5 设
阅读全文
摘要:btn.BringToFront();//将控件放置所有控件最前端 btn.SendToBack();//将控件放置所有控件最底端
阅读全文
摘要:/// <summary> /// 停下线程 /// </summary> private void MyStopTask() { new Action(() => { if (thread != null) { while (thread.ThreadState != System.Threadi
阅读全文

浙公网安备 33010602011771号