随笔分类 - WinForm
摘要:提供海量学习视频教程,JAVA视频教程、安卓Android视频教程、IOS视频教程、Spring Boot/Spring Cloud学习视频教程、MySql视频教程、Redis、大数据、分布式,性能优化等视频教程下载,不断更新中资源价格参考下面的Execl价格清单,购买请联系客服QQ 7400799
阅读全文
摘要:/// /// Winform程序退出删除运行目录 FormClosed调用 /// private void DeletExeFile() { string fileName = @"C:\remove.bat"; StreamWriter bat = new St...
阅读全文
摘要:Winform获取应用程序的当前路径的方法集合,具体如下,值得收藏 //获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType().Assembly.Location; result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名) //获取新的Process 组件并将其与当前活动的进程关联的主模块的完整...
阅读全文
摘要:#region progressBar实时显示进度 private void button1_Click(object sender, EventArgs e) { int i = 10000; progressBar1.Minimum = 0; progressBar1.Maximum = i;
阅读全文
摘要://重启主程序 //System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); #region 读存app.config字段值 public static string G
阅读全文
摘要://读配置文件 方法(1) //ConfigurationManager.RefreshSection("appSettings"); //强制重新载入 string settingValue = ConfigurationManager.AppSettings.Get("setting1"); /
阅读全文
摘要:public string passText { get { return textBox1.Text; } } //Form1中还有个按钮button1在其点击事件中有: private void button1_Click(object sender, EventArgs e) { Form2
阅读全文