随笔分类 -  C#

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

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页