随笔分类 -  C#

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要:https://www.cnblogs.com/qc-id-01/p/7489021.html FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.Description = "请选择文件路径"; //dialog.RootF 阅读全文
posted @ 2021-09-29 15:25 LuoCore 阅读(408) 评论(0) 推荐(0) 编辑
摘要://先给 DataGridView 赋值一个空表 DataSet ds_temp = 数据库.getDs("select * from 表名 where 1=0"); if (ds_temp != null && ds_temp.Tables.Count > 0) { rcomdgv1.DataSo 阅读全文
posted @ 2021-09-17 20:04 LuoCore 阅读(515) 评论(0) 推荐(0) 编辑
摘要:SQLite Encryption(加密)问题_码农01号的博客-程序员宅基地 - 程序员宅基地 (cxyzjd.com) SQLite Encryption(加密)问题_码农01号的博客-程序员宅基地 - 程序员宅基地 (cxyzjd.com) SQLite Encryption(加密)问题_码农 阅读全文
posted @ 2021-09-17 17:08 LuoCore 阅读(8703) 评论(0) 推荐(4) 编辑
摘要:public static string SetSaveFilePath(string filterType= "所有文件|*.*",string fileName="我的文件",string defaultExt=".txt") { SaveFileDialog dialog = new Save 阅读全文
posted @ 2021-09-15 19:13 LuoCore 阅读(1652) 评论(0) 推荐(0) 编辑
摘要:https://my.oschina.net/smartsmile/blog/814810 //Image转换Bitmap //1. Bitmap img = new Bitmap(imgSelect.Image); //2. Bitmap bmp = (Bitmap)pictureBox1.Ima 阅读全文
posted @ 2021-09-13 11:24 LuoCore 阅读(641) 评论(0) 推荐(0) 编辑
摘要:https://wenku.baidu.com/view/621fbbec0066f5335b81218f.html 一、关闭窗体在c#中退出WinForm 程序包括有很多方法, 如:this.Close();Application. Exit(); Application. ExitThread( 阅读全文
posted @ 2021-09-09 15:29 LuoCore 阅读(915) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/qiantao/p/9468570.html 作为研发人员,在本机上开发的winform、wpf或者控制台程序需要发给其他人测试时候,一般需要对其进行打包生成setup安装文件,根据网上查找的资料并结合自己打包成功,记录如下: 注:本程序是一个利用wi 阅读全文
posted @ 2021-08-27 11:39 LuoCore 阅读(679) 评论(0) 推荐(0) 编辑
摘要:class ControlComponent { #region 实现窗体内的控件拖动 //用法:在Form初始化或者Form_Load时先执行 //DragComponent a = new DragComponent(); //a.initProperty(groupBox1); //将界面gr 阅读全文
posted @ 2021-08-12 13:45 LuoCore 阅读(451) 评论(0) 推荐(0) 编辑
摘要://TextBox 必须是多行文本框 private void Txt_Billcode_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.Enter) //当按下Ctrl和Enter 输入回车 { 阅读全文
posted @ 2021-08-10 15:28 LuoCore 阅读(535) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/hhhhhhhhhhwwwwwwwwww/article/details/112222711 IsSpliterFixed属性设为False FixedPannel属性设为Panel1(要固定的面板的名称) 阅读全文
posted @ 2021-08-05 13:38 LuoCore 阅读(685) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/educast/article/details/7954242 这种情况是由多线程引起的,在项目中遇到过这样的情况,查了一下网上的解决方法...汗,都不行。只有靠自己了! 首先在 static void Main() 函数前加上 [STAThreadAtt 阅读全文
posted @ 2021-08-04 23:06 LuoCore 阅读(428) 评论(0) 推荐(0) 编辑
摘要:MD5 x = new System.Security.Cryptography.MD5CryptoServiceProvider();使用 MD5 md5 = MD5.Create() 阅读全文
posted @ 2021-07-28 14:46 LuoCore 阅读(1592) 评论(0) 推荐(1) 编辑
摘要:https://blog.csdn.net/yl2isoft/article/details/16918311 None: 此文件不参与编译也不被输出。比如:工程中的文档文件, readme.txt。 * Compile: 参与编译并输出。主要是代码文件。 * Content: 不参与编译,但会被输 阅读全文
posted @ 2021-07-09 19:15 LuoCore 阅读(526) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/cxu123321/article/details/104812099https://blog.csdn.net/biyusr/article/details/7239911是否显示在属性面板上[Browsable(true)属性面板上面的说名[Descr 阅读全文
posted @ 2021-07-08 23:23 LuoCore 阅读(1382) 评论(0) 推荐(0) 编辑
摘要://取属性上的自定义特性给DataGridView赋值 Type objType = typeof(Models.Model); foreach (PropertyInfo propInfo in objType.GetProperties()) { object[] objAttrs = prop 阅读全文
posted @ 2021-07-08 15:12 LuoCore 阅读(181) 评论(0) 推荐(0) 编辑
摘要:xzy1152234051 https://www.red-gate.com/products/sql-development/sql-prompt/trial/thank-you 下载 https://download.red-gate.com/installers/SQLToolbelt/202 阅读全文
posted @ 2021-07-03 14:38 LuoCore 阅读(18) 评论(0) 推荐(0) 编辑
摘要:public static string HttpPostMultipartFormData(string url, NameValueCollection kVDatas, string method = WebRequestMethods.Http.Post, string encoding= 阅读全文
posted @ 2021-07-03 13:44 LuoCore 阅读(2530) 评论(2) 推荐(1) 编辑
摘要:namespace 解析数字开头的变量JSON { class Program { static void Main(string[] args) { string strJson = "{\"1st_attempt\":\"2021-02-09 16:32:15\",\"2nd_attempt\" 阅读全文
posted @ 2021-07-02 15:05 LuoCore 阅读(655) 评论(0) 推荐(0) 编辑
摘要:public class Student { public int ID { get; set; } public string Name { get; set; } public int Age { get; set; } public DateTime CreateTime { get; set 阅读全文
posted @ 2021-06-29 19:17 LuoCore 阅读(918) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/profession/p/6222489.html //四种深拷贝方法 public static T DeepCopyByReflect<T>(T obj) { //如果是字符串或值类型则直接返回 if (obj is string || obj.G 阅读全文
posted @ 2021-06-25 17:20 LuoCore 阅读(481) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
点击右上角即可分享
微信分享提示