摘要: System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("vvv");//模糊查找进程 foreach (System.Diagnostics.Process p in proces... 阅读全文
posted @ 2015-05-18 10:28 小小戒 阅读(1528) 评论(0) 推荐(0) 编辑
摘要: 待测试.....三种工具:installshieldinnosetupsetfactory 阅读全文
posted @ 2015-03-25 17:13 小小戒 阅读(212) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hfliyi/archive/2012/08/21/2649892.html 阅读全文
posted @ 2014-11-24 15:11 小小戒 阅读(123) 评论(0) 推荐(0) 编辑
摘要: /// /// 读取文本文件 /// /// 文件路径 private void FromTxtTodata(string txtfileName) { string txt = ""; ... 阅读全文
posted @ 2014-11-24 14:18 小小戒 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 首先后台添加命名空间using System.Drawing.Drawing2D;后台代码namespace Report.Web{ public partial class RoundPanel : Panel { private int mMatrixRound = 8... 阅读全文
posted @ 2014-06-13 16:10 小小戒 阅读(1399) 评论(2) 推荐(0) 编辑
摘要: 第一种音量调节的示例#region 音量控制 private Point mouse_offset; private void pictureBox7_MouseDown(object sender, MouseEventArgs e) { ... 阅读全文
posted @ 2014-06-11 09:47 小小戒 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 获取当前工作区宽度和高度(工作区不包含状态栏) int ScreenWidth = Screen.PrimaryScreen.WorkingArea.Width; int ScreenHeight = Screen.PrimaryScreen.WorkingArea.Height; 阅读全文
posted @ 2014-05-29 17:00 小小戒 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 关于动态添加WebService引用的地址的问题,我分析了一下,解决方案如下:1.在应用程序中添加配置文件(如Winform的一般是app.config,webform的一般是web.config),在目录下添加一个配置WebService引用地址的节点,如:2.项目添加Web服务引用,如引用名为ServiceCenter,引用成功后,在打开目录Web References》ServiceCenter》Reference.map》Reference.cs的Reference.cs文件,这是一个WebService代理类。不同的WebService生成的代理类不同。构造函数如:public Te 阅读全文
posted @ 2014-03-11 11:51 小小戒 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: string str="abcde";strings=Encoding.GetEncoding("GBK").GetString(Encoding.Default.GetBytes(str)); 阅读全文
posted @ 2014-01-24 11:34 小小戒 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 1.设置connectionStrings节点 再类中调用:先添加公共语言 using System.Configuration;读取:public static readonly string ConnectionStringLocalTransaction = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;2.设置appsettings节点:再类中调用:先添加公共语言 using System.Configuration;读取: string path = C 阅读全文
posted @ 2014-01-22 10:22 小小戒 阅读(513) 评论(0) 推荐(0) 编辑