随笔分类 -  WinForm

摘要:一、 CefSharp简单来说就是一款.Net编写的浏览器包,方便你在Winform和WPF中内嵌的Chrome浏览器组件。 https://github.com/cefsharp/CefSharp 二、使用 1.安装,在vs中NuGet搜索CefSharp然后下载安装CefSharp.WinFor 阅读全文
posted @ 2019-12-02 15:36 ike_li 阅读(7572) 评论(0) 推荐(2)
摘要:1. 首先在窗体上放上一个Panel容器,并将容器的Dock属性设为Fill,即所有的控件都放在了这个容器里。 使用: 阅读全文
posted @ 2018-09-10 11:14 ike_li 阅读(8316) 评论(3) 推荐(1)
摘要:采用在窗体事件SizeChanged里面代码控制大小和位置,达到自动适应窗体大小,这样做调整起来方便。 阅读全文
posted @ 2017-08-10 17:03 ike_li 阅读(3619) 评论(0) 推荐(0)
摘要:有关的此内容好的文章参考:http://www.cnblogs.com/yuanfan/archive/2010/12/03/1895689.htmlhttp://blog.csdn.net/xiaohan2826/article/details/85209791.自定义窗体 项目中都保持一个窗体风... 阅读全文
posted @ 2015-04-20 15:06 ike_li 阅读(342) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2014-11-17 11:08 ike_li
摘要:通过Resource文件建立本地化。 net 资源文件名(这里是Resource.resx)由根名称(即Resource),本地语言名称(默认情况下还没有)及扩展名组成,在读取资源时,资源管理器会根据当前环境决定需要的本地语言名称,例如英语,然后试图以全名读取资源,美国英语的本地名称为en-US(更 阅读全文
posted @ 2014-05-15 16:45 ike_li 阅读(2957) 评论(0) 推荐(0)
摘要:@echo offecho 设置IP地址echo正在设置IP地址和子网掩码.netsh interface ip set address name="本地连接" source=static addr=192.168.0.2 mask=255.255.255.0echo设置网关netsh interface ip set address name="本地连接" gateway=192.168.0.1 gwmetric=0echo 设置首选DNS1netsh interface ip set address name="本地连接" sou 阅读全文
posted @ 2012-08-14 15:52 ike_li 阅读(226) 评论(0) 推荐(0)
摘要:publicvoidDrivePrint(stringfilePath){stringpdfPath=filePath;System.Drawing.Printing.PrintDocumentpd=newSystem.Drawing.Printing.PrintDocument();ProcessprocessInstance=newProcess();ProcessStartInfostartInfo=newProcessStartInfo();startInfo.UseShellExecute=true;startInfo.Verb="Print";startInfo 阅读全文
posted @ 2011-05-04 15:42 ike_li 阅读(285) 评论(0) 推荐(0)
摘要:1.设置窗体属性ShowInTaskbar=false 2.加notifyicon控件notifyicon1,为控件notifyicon1的属性icon添加一个icon图标。 3.添加触发事件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//窗体... 阅读全文
posted @ 2010-11-29 10:55 ike_li 阅读(448) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatestringGetLocalIp(){stringlocalIp;IPHostEntryhost;host=Dns.GetHostEntry(Dns.GetHostName());if(... 阅读全文
posted @ 2010-11-09 15:44 ike_li 阅读(647) 评论(2) 推荐(0)
摘要:[代码]调用代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatevoidFrmMain_Load(objectsender,EventArgse){if(IsRunning("CleanFileServer")==true){Messag... 阅读全文
posted @ 2010-11-09 12:11 ike_li 阅读(328) 评论(0) 推荐(1)
摘要:1.数据库下载地址 http://sqlite.phxsoftware.com/ 2.下载完成添加引用System.Data.SQLite.dll 3.SQLite操作通用类 <!--<br/><br/>Code highlighting produced by Actipro CodeHighli 阅读全文
posted @ 2010-11-01 15:48 ike_li 阅读(801) 评论(0) 推荐(0)
摘要:获取电脑CPUID,HdId,MacId后,加工处理这个字符串代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//交换字符的位置privatestringChangCharLocation(stringpcNum){stringhidMacId=p... 阅读全文
posted @ 2010-08-03 14:55 ike_li 阅读(274) 评论(0) 推荐(0)
摘要:我们在编写C/S架构的Windows程序时,就回涉及到登录窗体和主窗体的切换问题,现根据不同的思路设计如下:我们首先假设Login为登录窗体,Main为主窗体如果我们在Program.cs中的Main函数设置Login为启动的话,也就是设置登录窗体为主窗体,这样的话Main主窗体就不能使用Main函数来打开了,如果在使用它来打开就回出现“在单个线程上开始另一个消息循环是无效操作"的错误... 阅读全文
posted @ 2010-08-03 09:51 ike_li 阅读(707) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2010-08-02 16:29 ike_li 阅读(24) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2010-08-02 16:23 ike_li 阅读(15) 评论(0) 推荐(0)
摘要:1。获取进程Id,进程名字。代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- using System.Diagnostics; //获取电脑当前运行的进程 Process[] myProcesses; //Get the list of cu... 阅读全文
posted @ 2010-07-30 14:25 ike_li 阅读(205) 评论(0) 推荐(0)