摘要: 2020-04-05 每日一例第27天 1.打开记事本,输入html格式语言; 2.后台代码注释; <html> <head><!--标题语句--> <tittle> X的家</tittle><!--标题--> </head> <body><!--内容--> 窗前明月光,疑是地上霜。 </body> 阅读全文
posted @ 2020-04-05 23:32 winnerljs 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 2020-04-04 每日一例第26天 1.新建对话框; 2.后台代码; StartPosition = FormStartPosition.CenterScreen; 阅读全文
posted @ 2020-04-04 23:38 winnerljs 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: 2020-04-03 每日一例第26天 1.新建对话框,拖label/button控件; 2.后台代码; MessageBox.Show("10天前是:"+DateTime.Now.AddDays(-10).ToString("yyyy年M月d日"),"提示!"); 阅读全文
posted @ 2020-04-03 23:40 winnerljs 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 2020-04-02 每日一例第25天 1.新建对话框,拖label/textbox/button控件; 2.后台代码; int str; if (int.TryParse(text1.Text,out str)) { text2.Text = new Upper().NumToChinese(te 阅读全文
posted @ 2020-04-03 00:03 winnerljs 阅读(1770) 评论(0) 推荐(0) 编辑
摘要: 2020-04-02 每日一例第24天 1.新建对话框,拖label/textbox/button控件; 2.后台代码; textBox1.Text = textBox1.Text.Replace(textBox2.Text, textBox3.Text); 阅读全文
posted @ 2020-04-02 00:24 winnerljs 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: 2020-03-31 每日一例第23天 1.新建对话框,拖label/textbox控件; 2.后台代码; private void textBox1_TextChanged(object sender, EventArgs e) { //输入字符转数组 char[] p_char = text1. 阅读全文
posted @ 2020-03-31 22:56 winnerljs 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 2020-03-30 每日一例第22天 1.新建对话框,拖label/textbox/button控件; 2.后台代码; //声明字段 StringBuilder sb = new StringBuilder(text1.Text); //遍历 for (int i = 0; i < sb.Leng 阅读全文
posted @ 2020-03-30 23:27 winnerljs 阅读(3115) 评论(0) 推荐(0) 编辑
摘要: 2020-03-30 每日一例第21天 1.新建对话框,拖label/textbox控件; 2.后台代码; public string GetABC(string str) { Regex reg = new Regex("^[\u4e00-\u9fa5]$"); byte[] arr = new 阅读全文
posted @ 2020-03-30 00:06 winnerljs 阅读(650) 评论(2) 推荐(0) 编辑
摘要: 2020-03-28 每日一例第20天 string fileName = @"D:\music\1.mp3"; //文件是否存在if (File.Exists(fileName)){ //删除文件File.Delete(fileName);} 阅读全文
posted @ 2020-03-28 23:24 winnerljs 阅读(5196) 评论(0) 推荐(0) 编辑
摘要: 2020-03-28 每日一例第19天 string fileName = @"D:\music\1.mp3"; //文件是否存在 if (File.Exists(fileName)) { Console.WriteLine("{0}文件存在", fileName); Console.ReadKey 阅读全文
posted @ 2020-03-28 01:43 winnerljs 阅读(3757) 评论(0) 推荐(0) 编辑