using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Windows.Forms; using System.Reflection; namespace D... ...
WPF程序性能由很多因素造成,以下是简单地总结: 元素: 1、 减少需要显示的元素数量:去除不需要或者冗余的XAML元素代码. 通过移出不必要的元素,合并layout panels,简化templates来减少可视化树的层次。这可以保证第内存使用,而改变渲染性能。 2、 UI虚拟化:只显示当前需要显 ...
打印服务器添了台DocuCentre-VIC3371(富士施乐3371打印机)问题描述:Win8.1、Win10等系统均能正常连接,部分Win7客户端连接时,报0x00000bcb错误。解决方法:后来桌面小哥找到了解决方法,Win7安装Windows6.1-KB3170455-x64补丁后,正常连接打印机(看来及时打补丁,很有必要)
分类:
Windows程序 时间:
2017-08-29 18:51:45
阅读次数:
3651
public void WriteLog(string msg) { string filePath = AppDomain.CurrentDomain.BaseDirectory + "Log"; if (!Directory.Exists(filePath)) { Directory.Creat ...
#region 第一种方法 [DllImport("user32.dll")] static extern bool GetCursorInfo(out CURSORINFO pci); private const Int32 CURSOR_SHOWING = 0x00000001; [Struct ...
Delphi中 StrToIntDef函数的用法:比如我要判断一个文本框里输入的字符串能不能转换为integer类型,如果能,则返回转换后的整型数据,如果不能,则返回整数0,那么我就可以用strtointdef这个函数.写法如下:假设edit1.text:=‘1000‘;则strtointdef(e ...
最近使用到WebSocket功能. 在临时任务中用网上C#类已实现.但是以后的平台是delphi上面进行开发的.上网找到该控件.折腾两天安装成功.记录下!! 国内网站下载的3.2版本,不支持最新delphi 10.2. 3.2版本在Delphi7上边安装,需要卸载indy9,下载最新indy10,我 ...
C#GDI绘图 1、绘图步骤 1.1创建Graphics类 1.1.1控件类的OnPaint()方法参数PaintEventArgs获取Graphcis对象。 1.1.2窗体类或控件中的CreatGraphics()方法获取Graphics对象。 1.1.3从位图对象(Bitmap)产生一个Grap ...
在C#从诞生到发展壮大的过程中,新知识点不断引入。逆变与协变并不是C#独创的,属于后续引入。在Java中同样存在逆变与协变,后续我还会写一篇Java逆变协变的文章,有兴趣的朋友可以关注一下。 ...
ElasticSearch版本: 5.5.1 (最新稳定版为5.5.2),由于用到IK中文分词插件,最新版本没有5.5.2 ,所以使用5.5.1 日期:2017-08-31 第五章:Kibana 安装 Search Guard 官方文档 1、下载与kibana 版本对应的 Search Guard ...
这个文章应该算是最好的了。但是还有一些需要修正 win10 msys2 vs2015 ffmpeg3.2.2 编译 1) 把这个加到 ffmpeg.c 的最上面 ...
1,ArrayList集合定义数组时,不需要初始化其大小: 例: ArrayList animalArrayList = new ArrayList(); 但,使用array方法定义数组时: Animal[] animalArrayList2 = new Animal[5]; 2.ArrayList ...
添加映射: netsh interface portproxy add v4tov4 listenport=9888 connectaddress=192.168.20.5 connectport=9888 删除映射: netsh interface portproxy delete v4tov4 ...
作者:Mark Michaelis| 2016 年 1 月 Link: https://msdn.microsoft.com/zh-cn/magazine/mt614271.aspx 随着 Visual Studio 2015 Update 1(下文简称 Update 1)的发布,引出了全新的 C#... ...
打开命令框:输入sc delete 服务名 例如删除elasticsearch-service-x64服务 sc delete elasticsearch-service-x64 ...
我们先尝试在开机的时候按F8进入安全模式,进入到安全模式后一次打开“控制面板”-“程序与功能”,然后将卡巴斯基卸载[ http://jingyan.baidu.com/article/ff42efa9179fa2c19e2202ab.html],然后根据以下方式来进行一次干净启动。 步骤 1:启动系 ...
下载node出现以下异常 : the install has encountered an unexpected errer installing this package.this may indicate aproblem with this package.the error code is ...
一、Memcached和Memcache的区别: 网上关于Memcached和Memcache的区别的理解众说纷纭,我个人的理解是: Memcached是一个内存缓存系统,而Memcache是php的一个扩展,是php用于操作和管理Memcached的工具。如果安装了Memcached但没有安装Me ...