文章分类 - C# 那些事儿
摘要:1.GridControl隐藏GroupPanel(主面板) 隐藏:鼠标单击Run Designer-OptionsView-ShowGroupPanel=False; 修改:鼠标单击Run Designer-Appearance-GroupPanelText="检索信息"; this.gridVi
        阅读全文
                
摘要:TTS, Text To Speech的缩写,是使用语音朗读文本的技术。 从.NET 4.0开始,增加了一个 dynamic 动态绑定的功能,使得C#可以像VB.NET那样,使用后期绑定的方式,使用COM对象了,从而使得直接COM调用,也非常的简单了。 .Net 4.0 的实现方式: Type ty
        阅读全文
                
摘要:引用类库:System.Speech.dll 导入空间: using System.Speech.Synthesis; //用于生成响应的事件using System.Speech;using System.Speech.Recognition; //1.Async="true" //2.Speec
        阅读全文
                
摘要:public HisGpsDataQR GetMongo(HisGpsDataParam param) { HisGpsDataQR res = new HisGpsDataQR(); res.GUID = this.Request.RequestUri.ParseQueryString()["GU
        阅读全文
                
摘要:官方驱动查询: Query.All("name", "a", "b");//通过多个元素来匹配数组 Query.And(Query.EQ("name", "a"), Query.EQ("title", "t"));//同时满足多个条件 Query.EQ("name", "a");//等于 Query
        阅读全文
                
摘要:1、InfluxDBHelper类 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; namespace t
        阅读全文
                
摘要:步骤一:创建函数 步骤二:创建存储过程
        阅读全文
                
摘要:--DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 取当前年月日时分秒 currentTime=System.DateTime.Now; 取当前年 int 年=currentTime.Year; 取当前月 int 月=currentTime.Month; 取当前日 int ...
        阅读全文
                
摘要:1、安装运行 DevExpressUniversalTrialComplete-20151209.exe 2、运行DevExpress.Patch7.0-by dimaster.rar破解 3、导入注册表去除Dev破解后的弹出界面框 4、启动VS2013,开始启动时候,会加载devexpress控件
        阅读全文
                
摘要:private void richTextBox1_TextChanged(object sender, EventArgs e) { richTextBox1.SelectionStart = richTextBox1.TextLength; // Scrolls the contents of the control...
        阅读全文
                
摘要://C# 获取农历日期 /// /// 实例化一个 ChineseLunisolarCalendar /// private static ChineseLunisolarCalendar ChineseCalendar =new ChineseLunisolarCalendar(); /// /// 十天干 /// private static string[] tg = { "甲",...
        阅读全文
                
摘要:1、 首先找到文件AssemblyInfo.cs 2、 修改版本的格式,修改后,程序每次编译,程序集的版本号都会自增。 修改前: 修改后: 3、 获取版本号和编译时间 Note: C#下默认是每发布一次才增加,而生成时不会;修改版本的格式,修改后,程序每次编译,程序集的版本号都会自动增加。
        阅读全文
                
摘要:创建一个socket服务类,绑定监听端口, 然后创建一个线程listen连接的客户端, 把监听到的客户端加入dictionary里面,以便于管理, 同时创建receive线程,循环接收数据加入list缓存区,解决粘包或者分包的情况, 关闭服务时,需要将连接上的socket逐个shutdown。
        阅读全文
                
摘要:/// /// 字符串转ASCII码 /// /// /// 16进制,以空格分隔 public static string Text2Ascii(string str) { byte[] textbuf = Encoding.Default.GetBytes(...
        阅读全文
                
摘要:实现该菜单功能主要有两种方法: 第一种:通过发送击键到应用程序来实现。 先焦点定位到当前活动的RichTextBox,然后再通过发送击键命令来实现操作功能 第二种:直接通过命令操作剪贴板实现
        阅读全文
                
摘要:string test = “This is string″; // convert string to stream MemoryStream stream = new MemoryStream(); StreamWriter writer = new StreamWriter( stream ); writer.Write( test ); writer.Flush...
        阅读全文
                
摘要:private void view_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { if (e.RowIndex view.Rows.Count - 1) return; DataGridViewRow dgr = ...
        阅读全文
                
摘要:使用的是VS2013,默认情况下,对于代码的自动提示功能,目标关键字总是处于虚选中状态,如下图所示: 这样的话,老是要再按一次tab键才可以选中。 其实,只要设置一个参数就可以默认处于选中状态。 TOOLS => Options => Text Editor => C/C++ => Advanced
        阅读全文
                
摘要:1、 寻找相同的数据并定位. 2 、模糊查询 3、是否还要继续查找
        阅读全文
                
摘要:一、设置DataGridView可编辑 二、处理DataGridView的
        阅读全文
                
                    
                
浙公网安备 33010602011771号