会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
六镇2012
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
9
下一页
2023年6月13日
Winform/WPF Clipboard之剪切复制粘贴
摘要: 转载自 作者:心存善念本文地址:https://www.cnblogs.com/xcsn/p/4678364.htm Winform /// <summary> /// 复制粘贴帮助类 /// </summary> public class ClipboardHelper { /// <summar
阅读全文
posted @ 2023-06-13 19:13 六镇2012
阅读(412)
评论(0)
推荐(0)
2023年5月29日
VSTO添加右键菜单
摘要: 以Word为例 private void AddRightMenu() { Microsoft.Office.Core.CommandBar mzBar = appWord.CommandBars["Text"]; //word文档已有的右键菜单Text Microsoft.Office.Core.
阅读全文
posted @ 2023-05-29 11:05 六镇2012
阅读(395)
评论(0)
推荐(0)
2023年5月22日
视频格式转换:flv转MP4
摘要: 网络上有很多格式转换的软件,但是大多要收费,这里介绍一种免费方式,使用开源的ffmpeg.exe进行格式转换。 可以在这个地址下载Download FFmpeg。 使用命令行即可将flv转成MP4 ffmpeg -i "1.flv" -c copy "1.mp4" 分享一个批处理命令,将ffmpeg
阅读全文
posted @ 2023-05-22 09:35 六镇2012
阅读(279)
评论(0)
推荐(0)
2023年5月19日
VSTO Addin 获取当前文件文件名及路径
摘要: 以ppt为例,其中Path返回路径,FullName返回文件名 //ppt var FullPath= Path.Combine(Globals.ThisAddIn.Application.ActivePresentation.Path, Globals.ThisAddIn.Application.
阅读全文
posted @ 2023-05-19 15:58 六镇2012
阅读(191)
评论(0)
推荐(0)
2023年3月20日
WPF命令绑定汇总
摘要: 1、Button等自带Command属性的控件,直接绑定命令 <Button HorizontalAlignment="Left" Width="105" Height="32"Command="{Binding ClickCommand}"> <TextBlock Text="点击" Foregr
阅读全文
posted @ 2023-03-20 15:51 六镇2012
阅读(583)
评论(0)
推荐(0)
2023年3月5日
MySQL Workbench 8.0 点击Server Status面板Could not acquire management access for administration报错问题解决
摘要: 转载自: MySQL Workbench 8.0 点击Server Status面板Could not acquire management access for administration报错问题解决 Win10安装MySQL Workbench 8.0后连接MySQL服务器后,点击Server
阅读全文
posted @ 2023-03-05 17:14 六镇2012
阅读(5733)
评论(1)
推荐(5)
2023年1月10日
一个有意思的bug,WPF中ComboBox的Text属性变化异常
摘要: WPF中ComboBox设置IsEditable="True"后,ComboBox变的可以输入文本,但是在输入@$等字符时,监听ComboBox内部样式中的TextBox的TextChanged事件(以@为例),会发现输入一次@,Text改变了3次,分别为“ ”、“@”、“@”。 记录一下
阅读全文
posted @ 2023-01-10 16:31 六镇2012
阅读(351)
评论(0)
推荐(0)
2022年11月29日
Windows服务(C#)显式运行exe程序
摘要: 转载于:https://cognize.me/windowsservice/ 一般来讲,用C#运行某个.exe程序,我们都会这样写: Process.Start("xxx.exe") 其中,“xxx.exe”表示我们要运行的exe的路径,Process.Start()函数有多种重载,我们这里不再赘述
阅读全文
posted @ 2022-11-29 18:11 六镇2012
阅读(1647)
评论(1)
推荐(0)
2022年7月14日
通过该WindowChrome类,可以将WPF窗体内容扩展到通常为操作系统的窗口管理器保留的窗口的非工作区
摘要: https://docs.microsoft.com/zh-cn/dotnet/api/system.windows.shell.windowchrome?redirectedfrom=MSDN&view=windowsdesktop-6.0
阅读全文
posted @ 2022-07-14 20:33 六镇2012
阅读(35)
评论(0)
推荐(0)
2022年6月22日
C# File.Create创建文件后直接写入,报文件被占用的异常
摘要: 程序里偶然用了System.IO.File.Create去创建文件,然后写入文件一直报错(文件被占用)。 解决办法 方案1 System.IO.File.Create(fileName).Close(); 方案2 using(System.IO.File.Create(fileName)) { //
阅读全文
posted @ 2022-06-22 16:12 六镇2012
阅读(746)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告