Winform
Steven_eleven
我自是年少,韶华倾覆
展开
-
c# 三种计算程序运行时间的方法
三种计算c#程序运行时间的方法第一种:利用System.DateTime.Now// example1: System.DateTime.Now methodDateTime dt1 = System.DateTime.Now;System.Threading.Thread.Sleep(time_cap);DateTime dt2 = System.DateTime.Now;TimeSpan ts = dt2.Subtract(dt1);Console.WriteLine("ex...原创 2020-12-05 10:37:59 · 2041 阅读 · 0 评论 -
C#Winform提示错误,Release模式下报错Visual Basic Powerpack不存在 ,是否缺少引用
首先,在自己的工具箱的选项卡里面看一下你的Microsoft.VisualBasic.PowerPacks版本,如果是10.0,使用如下官网链接更新安装http://go.microsoft.com/fwlink/?LinkId=321343安装完成以后将上面的组件添加到工具箱的选项卡里面。如下所示使用power过滤检索,快速引用:下一步将reference引用添加到程序中,如果不记得路径可以在上一步的视图里面查看路径:如下所示:这样就完成了程序build通过,但..原创 2020-10-08 09:39:31 · 1007 阅读 · 1 评论