随笔分类 - C# Programing Design
摘要:全局”快捷键下列快捷组合键可用于集成开发环境 (IDE) 中的不同位置。命令名快捷键说明编辑.复制CTRL + CCTRL + INSERT将当前选定的项复制到系统剪贴板。编辑.剪切CTRL + XSHIFT + DELETE将当前选定的项移除到系统剪贴板。编辑.循环应用剪贴板中的复制项CTRL + SHIFT + INSCTRL + SHIFT + V将项从“工具箱”的“剪贴板循环”选项卡粘贴在...
        阅读全文
            
摘要:static bool IsNumeric(string str) { System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex(@"^\d+[.]?\d*$"); return reg1.IsMatch(str); }支持负数static bool IsNumeric(string s...
        阅读全文
            
摘要:1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre...
        阅读全文
            
摘要:/// /// 单元格显示格式事件 /// /// /// private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { // 把第4列显示*号,*号...
        阅读全文
            
摘要:Visual Studio 2005(C#)中只允许一个实例运行的一种方法 using System;using System.Collections.Generic;using System.Windows.Forms; namespace School.ReadPaperControl{ static class Program { /// /// T...
        阅读全文
            
摘要:日期处理datetime和date之间的相互转换 日期是数据处理中经常使用到的信息之一。生日、数据处理时间、计划的预计完成时间,按年、季、月的统计,这些都属于日期处理的范畴。由于日期中包含了年、季、月、日等众多信息,不同的国家对日期格式、日期文字描述及星期有不同的规定,因此产生了日期处理的复杂性。本章主要讨论在SQL Server数据库中对日期的各种处理方法。 日期类型概述 SQL Server...
        阅读全文
            
摘要:using System; using System.IO; using System.Security.Cryptography; namespace Vavic { /// /// Security 的摘要说明。 /// public class Security { const string KEY_64 = "VavicApp"; const string I...
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号