摘要: string hexString = "8E2";int num = Int32.Parse(hexString, System.Globalization.NumberStyles.HexNumber);Console.WriteLine(num);//Output: 2274 阅读全文
posted @ 2021-11-20 11:02 代码不会写 阅读(139) 评论(0) 推荐(0)
摘要: Graphics Graphics = this.CreateGraphics(); SolidBrush SolidBrush = new SolidBrush(Color.Green); Graphics.FillEllipse(SolidBrush, 219, 37, 30, 30); 使用上 阅读全文
posted @ 2021-11-17 08:46 代码不会写 阅读(456) 评论(0) 推荐(1)
摘要: 字符数组转换为字符串,字符串转换为字节,例子如下 char[] ch = new char[str1.Length]; for (int i = 0; i < str1.Length; i++) { ch[i] = str1[i]; } byte[] data = new byte[str1.Len 阅读全文
posted @ 2021-11-10 10:32 代码不会写 阅读(401) 评论(0) 推荐(0)
摘要: e.Handled多用于过滤某些事件,比如键盘按键等,例如下面这段代码则只能输入0-9之间的数 if ((e.KeyChar < '0') || (e.KeyChar > '9')) { e.Handled = true; } 阅读全文
posted @ 2021-11-10 10:25 代码不会写 阅读(47) 评论(0) 推荐(0)
摘要: C#操作转到定义快捷键为F12,快速返回为Ctrl+减号 阅读全文
posted @ 2021-11-10 10:20 代码不会写 阅读(375) 评论(0) 推荐(0)
摘要: 今天是2021-11-01,毕业三年多了,兜兜转转又跨行回到了程序员行列,开始研究软件;选择了博客园记录自己在学习工作中的一点小小的感悟吧。 阅读全文
posted @ 2021-11-01 10:49 代码不会写 阅读(39) 评论(1) 推荐(0)