上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 以ppt为例,其中Path返回路径,FullName返回文件名 //ppt var FullPath= Path.Combine(Globals.ThisAddIn.Application.ActivePresentation.Path, Globals.ThisAddIn.Application. 阅读全文
posted @ 2023-05-19 15:58 六镇2012 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1、Button等自带Command属性的控件,直接绑定命令 <Button HorizontalAlignment="Left" Width="105" Height="32"Command="{Binding ClickCommand}"> <TextBlock Text="点击" Foregr 阅读全文
posted @ 2023-03-20 15:51 六镇2012 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 转载自: 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 阅读(3458) 评论(0) 推荐(1) 编辑
摘要: WPF中ComboBox设置IsEditable="True"后,ComboBox变的可以输入文本,但是在输入@$等字符时,监听ComboBox内部样式中的TextBox的TextChanged事件(以@为例),会发现输入一次@,Text改变了3次,分别为“ ”、“@”、“@”。 记录一下 阅读全文
posted @ 2023-01-10 16:31 六镇2012 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 转载于:https://cognize.me/windowsservice/ 一般来讲,用C#运行某个.exe程序,我们都会这样写: Process.Start("xxx.exe") 其中,“xxx.exe”表示我们要运行的exe的路径,Process.Start()函数有多种重载,我们这里不再赘述 阅读全文
posted @ 2022-11-29 18:11 六镇2012 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 程序里偶然用了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 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 一个自定义Activity,定义了一个InArgument类型的参数,用来接收任意类型的参数。 public class TestActivity : NativeActivity { public InArgument CurrentInArgument { get; set; } protect 阅读全文
posted @ 2022-06-17 10:44 六镇2012 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.xp.cn/b.php/85332.html https://www.cnblogs.com/alexyuyu/archive/2010/05/09/1731070.html 全指令为:C:\Windows\Microsoft.NET\Framework\v4.0.30 阅读全文
posted @ 2022-05-27 17:17 六镇2012 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、引用NuGet.Packaging包,其中NuGet.Core已被弃用。 2、采用以下代码 ManifestMetadata metadata = new ManifestMetadata() { Authors = new[] { "Marc" }, Version = new NuGet.V 阅读全文
posted @ 2022-05-25 18:07 六镇2012 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页