随笔分类 -  C#

上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要:Invalidate(); 阅读全文
posted @ 2018-12-22 18:32 LuoCore 阅读(1507) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/fish124423/archive/2012/10/16/2726543.html 在Invoke(....)之前加上1 this.components==null 2 this.IsDisposed 3 IsHandleCreated 来return 阅读全文
posted @ 2018-12-22 17:06 LuoCore 阅读(1235) 评论(0) 推荐(0)
摘要:当你在子线程中要修改主线程某个控件的值时,有不想再去定义一个线程变量时,就可以直接使用线程匿名委托来实现。 主要是方便快捷 控件.BeginInvoke(new ThreadStart(delegate () { 控件.Text = DateTime.Now.ToShortDateString(); 阅读全文
posted @ 2018-12-14 00:34 LuoCore 阅读(556) 评论(0) 推荐(0)
摘要:byte[] byteArray = System.Text.Encoding.Default.GetBytes(content); Byte[] ThisByte = new Byte[1];Buffer.BlockCopy(byteArray, 30, ThisByte, 0, 1);strin 阅读全文
posted @ 2018-12-11 22:52 LuoCore 阅读(2546) 评论(0) 推荐(0)
摘要:hotmail的服务器地址如下: pop服务器地址:pop-mail.outlook.com smtp服务器地址:smtp-mail.outlook.com imap服务器地址:imap-mail.outlook.com 有不对的请联系我修改 , luocoer@hotmail.com 阅读全文
posted @ 2018-11-26 17:00 LuoCore 阅读(4933) 评论(0) 推荐(0)
摘要:1、选择文件用OpenDialog 2、使用System.Windows.Forms.FolderBrowserDialog选择文件夹 3、直接打开某路径下的文件或者文件夹 C#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"\ 阅读全文
posted @ 2018-11-16 11:23 LuoCore 阅读(2145) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/zaocha321/article/details/52528279 using System.Collections.Generic; using System.ComponentModel; using System.Data; using Syste 阅读全文
posted @ 2018-10-29 17:42 LuoCore 阅读(956) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/gtosky4u/article/details/20118813 this.BeginInvoke(new EventHandler(delegate { this.textBox1.Text += "2"; })); this.Invoke(new E 阅读全文
posted @ 2018-09-30 11:43 LuoCore 阅读(1564) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/wumiju/article/details/80429412 public partial class ProductTypeModel:DbEntityModels.ProductType { public List<ProductTypeModel> 阅读全文
posted @ 2018-09-24 21:52 LuoCore 阅读(373) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/gggg/p/5867412.html 变量定义中含有一个问号,意思是这个数据类型是NullAble类型的。(NullAble意思是可以为空) 变量定义中含有两个问号,意思是取所赋值??左边的,如果左边为null,取所赋值??右边的。 阅读全文
posted @ 2018-09-08 13:23 LuoCore 阅读(627) 评论(0) 推荐(0)
摘要:DataTable.Compute()用法 2010-04-07 11:28 一、DataTable.Compute()方法說明如下作用: 计算用来传递筛选条件的当前行上的给定表达式。 格式為: Object Compute (string expression,string filter)参数: 阅读全文
posted @ 2018-09-04 17:25 LuoCore 阅读(5899) 评论(0) 推荐(2)
摘要:两种情况: 1 DateTime? dtTemp = null; if(dtTime != null) { //wawawa } 刚刚学会的,可空值类型,可判断是否赋值 2 DateTime dtTemp; if(dtTemp > DateTime.MinValue) { //hhh } 阅读全文
posted @ 2018-09-03 23:58 LuoCore 阅读(2192) 评论(0) 推荐(1)
摘要:https://blog.csdn.net/easyboot/article/details/68062196可以使用 Combobox.SelectText = “默认选中文本”; 但是如果Combobox的DropDowStyle属性,选择为DropDownList则上面的方法就不能用了 用下面 阅读全文
posted @ 2018-08-16 09:59 LuoCore 阅读(7047) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/Ruiky/archive/2012/04/16/2451663.html 阅读全文
posted @ 2018-08-15 21:28 LuoCore 阅读(469) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/aaaaatiger/article/details/5583301 1.debug只在[debug模式下才执行](运行按钮后面的下拉框可选) 2.debug提供了许多调试指令,如断言 System.Diagnostics.Debug.Assert(fal 阅读全文
posted @ 2018-08-15 21:27 LuoCore 阅读(8776) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/hutao1101175783/article/details/16800871 先对项目添加对Microsoft.VisualBasic的引用 Interaction.InputBox("请输入对方ip:", "提示:", "127.0.0.1", -1 阅读全文
posted @ 2018-08-15 20:41 LuoCore 阅读(561) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/luomingui/archive/2011/06/25/2090130.html 测试了好像没用的。不知道什么原因 阅读全文
posted @ 2018-08-15 20:24 LuoCore 阅读(339) 评论(0) 推荐(0)
摘要:https://zhidao.baidu.com/question/31914620.html https://www.cnblogs.com/xcsn/p/4678322.html Process CurrentProcess = Process.GetCurrentProcess();Curre 阅读全文
posted @ 2018-08-09 10:52 LuoCore 阅读(839) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/Koala_Ivy/article/details/79577830 开发遇到的问题 记录一下 前段时间捣鼓dotnetty框架,服务端写了一个控制台程序来启动服务。 但是生成之后并没有看到.exe类型的启动文件 记录除调试之外启动方式如下 cmd找到当前 阅读全文
posted @ 2018-07-11 11:54 LuoCore 阅读(637) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/servant/p/4462446.html using System;using System.Collections.Generic;using System.Text;using System.Xml.Serialization;using Sy 阅读全文
posted @ 2018-06-26 14:03 LuoCore 阅读(236) 评论(0) 推荐(0)

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