随笔分类 -  .Net--WinForm

摘要:什么也不说了,看以下实例。 /// <summary> /// 获取到的京东系统级参数保存到文件里 /// </summary> /// <param name="authForm"> 窗口类</param> void SetInFile(AuthForm authForm) { //应用程序的可执行文件的路径 string DirectoryPath = Application.StartupPath + "\\INI"; //创建目录 if (!Directory.Exists(DirectoryPat 阅读全文
posted @ 2012-08-01 15:39 杨斌_济南 阅读(1070) 评论(0) 推荐(1)
摘要:using (Process process = new System.Diagnostics.Process()) { process.StartInfo.FileName = "ping"; process.StartInfo.Arguments = "www.ymind.net"; // 必须禁用操作系统外壳程序 process.StartInfo.UseShellExecute = false; process.StartInfo.CreateNoWindow = true; process.StartInfo.RedirectStandardO 阅读全文
posted @ 2012-07-23 17:25 杨斌_济南 阅读(314) 评论(0) 推荐(0)