- 博客(4)
- 收藏
- 关注
原创 C# 程序隐藏在托盘,快捷方式启动Show出来。
1、第一种情况: 最小化+托盘 public App() { this.Startup += App_Startup; } private void App_Startup(object sender, StartupEventArgs e) { bool ret; mutex = new System.Threading.Mutex(true, "RsVPN", ou
2020-12-08 17:04:57 860 1
原创 wpf 滚动条样式
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:RsVPN"> <!-- ScrollViewer 滚动条 --&.
2020-12-23 15:14:36 837 1
原创 WPF 资源动态加载
LoadStyleResource(@"Resources/style/ResourceDictionary.xaml");窗体动态加载样式 private void Window_Initialized(object sender, EventArgs e) { this.AllowsTransparency = true; this.Style = (Style)this.FindResourc...
2020-12-11 15:21:06 472
原创 c# 开机自启 加载配置文件失败-路径
1、问题:正常情况下 快捷方式打开 软件 ,加载配置文件正常。设置开机自启后加载文件配置文件失败。2、解决方法:修改访问文件路径 String appStartupPath = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName); FileStream fs = File.Open(appStartupPath + @"\lang.cfg", FileMode..
2020-12-11 15:14:42 617
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人