博客园站长
这是人类成长进步中记录的每一时刻
posts - 717,comments - 69,views - 156万
07 2013 档案
c# winform 为按钮动态背景图片
摘要:参考自:http://www.cnblogs.com/sufei/archive/2012/11/15/2771299.html第一种,使用Properties.Resources类,这种方法需要你事先将图片添加到项目中来才行双击Properties --添加资源--图片--png/jpg? 命名比如 :abc.png然后在解决方案里面,删掉该图片,把要做背景的图片 拖进来,改成同名代码 button.BackgroundImage = 命名空间名.Properties.Resources.图片名称;第二种,直接用项目路径来引用图片(不能继承到 exe文件里)button.Backgroun. 阅读全文
posted @ 2013-07-09 14:30 dm3344 阅读(3804) 评论(0) 推荐(0) 编辑
c# 新建文本文件、遍历读取文本、删除文本行
摘要:如果该物理路径没有该文本则创建一个新文本if (!File.Exists(@"C:\db.txt")){FileStream fs = new FileStream(@"C:\db.txt", FileMode.Create);fs.Close();}//读取文本,遍历文本StreamReader sr = new StreamReader(@"C:\db.txt", Encoding.GetEncoding("gb2312"));string nextLine;while ((nextLine = sr.Read 阅读全文
posted @ 2013-07-09 09:58 dm3344 阅读(860) 评论(0) 推荐(0) 编辑
c# 移除文本文件里的某一行
摘要:参考自:http://zhidao.baidu.com/question/87467507.html//定义一个变量用来存读到的东西 string text = ""; //用一个读出流去读里面的数据 using (StreamReader reader = new StreamReader(@"C:\db.txt", Encoding.GetEncoding("gb2312"))) { //读一行 ... 阅读全文
posted @ 2013-07-09 09:56 dm3344 阅读(9552) 评论(0) 推荐(0) 编辑
oracle 获取当前用户下的所有表名与字段信息
摘要:select*fromuser_col_commentswheresubstr(table_name,1,3)'BIN' 阅读全文
posted @ 2013-07-05 11:30 dm3344 阅读(240) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示