摘要:
private string GetWeek() { string week = string.Empty; switch ((int)DateTime.Now.DayOfWeek) { case 0: week = "星期日";... 阅读全文
摘要:
private void aa() { System.Drawing.Printing.PrintDocument print = new System.Drawing.Printing.PrintDocument(); string sDefault = print.PrinterSettings.PrinterName;//默认... 阅读全文
摘要:
static void Main(string[] args) { string filePath = @"e:\test\abc.jpg"; Console.WriteLine(Path.GetFullPath(filePath)); //--> E:\test\abc.jpg Console.Wri... 阅读全文
摘要:
第一种: 第二种: 阅读全文
摘要:
for /l %%i in (1,1,10) do @echo %%ipause 阅读全文
摘要:
/// /// 获得pc号 /// public static string GetPcsnString() { var pcsn = ""; try { var search = new Manage... 阅读全文
摘要:
1、增加字段(修改表)alter table 表名 ADD 字段 类型 NOT NULL Default 0 阅读全文
摘要:
string l_strResult = 你的字符串.Replace("\n", "").Replace(" ","").Replace("\t","").Replace("\r",""); 阅读全文
摘要:
string数组 string[] s1 = new string[3] { "John", "Paul", "Mary" }; string[] s1 = new string[3] { "John", "Paul", "Mary" }; if (s1.Contains("John")) if ( 阅读全文
摘要:
i.ToString().PadLeft(5,'0'); 阅读全文