上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页
摘要: 添加项目 procedure TForm1.Button1Click(Sender: TObject);beginwith listview1.Items dobeginAdd.Caption:='1111111';Add.Caption:='2111111';Add.Caption:='3111111';end;end; ... 阅读全文
posted @ 2014-07-29 16:41 XE2011 阅读(160) 评论(0) 推荐(0) 编辑
摘要: //获取一个文件夹下的所有文件 //不包括文件夹里面的文件 //ListBox1.Items:=searchfile('Z:\'); //注意,path后面要有'\'; functionSearchfile(path:string):TStringList; var SearchRec:TSearchRec; found:integer; begin Result:=T... 阅读全文
posted @ 2014-07-29 16:40 XE2011 阅读(2439) 评论(0) 推荐(0) 编辑
摘要: Delphi连接MySQL真麻烦,研究了一天,从网上找了无数文章,下载了无数插件都没解决。最后返璞归真,老老实实用ADO来连接,发现也不是很顺利,但最终还是连接成功了。多少有点心得:ADO各个组件的作用和联系必须清楚,否则设置起来很容易混乱。总结一下用ADO连接MySQL5.1要点:1、需要下载MySQL的ODBC支持,我用的官网mysql-connector-odbc-5.1.7-win32.m... 阅读全文
posted @ 2014-07-29 16:39 XE2011 阅读(811) 评论(0) 推荐(0) 编辑
摘要: TransparentColor:=true; TransparentColorValue:=clFuchsia; Color:= TransparentColorValue; BorderStyle:=bsNone;delphi 窗体透明http://hi.baidu.com/duduppp/item/f347df3a16dbb9607c034bd5来自为知笔记(Wiz... 阅读全文
posted @ 2014-07-29 16:39 XE2011 阅读(327) 评论(0) 推荐(0) 编辑
摘要: unit untCpuInfo;interface{ 获取 CPU 制造商 }function GetCpuFactory: String;{ 获取 CPU 家族系统 }function GetCpuFamily: Cardinal;{ 获取 CPU 型号 }function GetCpuModel: Cardinal;{ 获取 CPU 步进 }function GetCpuStepping: C... 阅读全文
posted @ 2014-07-29 16:38 XE2011 阅读(330) 评论(0) 推荐(0) 编辑
摘要: //Canvas.TextOut文字保存为图片//Delphi开发案例精选,使用TextOut在画布上画图procedure TForm1.Button1Click(Sender: TObject);varMy_Image:Timage;i:integer;begintryMy_Image:=Timage.Create(nil);My_Image.Width:=me... 阅读全文
posted @ 2014-07-29 16:37 XE2011 阅读(222) 评论(0) 推荐(0) 编辑
摘要: uses Jpeg;function BMPtoJPG(var BMPpic, JPGpic: string): boolean;var Bitmap: TBitmap; JpegImg: TJpegImage;begin result := False; Bitmap := TBitmap.Create; try Bitmap.LoadFromFile(BMPpic); J... 阅读全文
posted @ 2014-07-29 16:37 XE2011 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://files.cnblogs.com/xe2011/officetable.rar画表格防OFFICE的功能画表格的功能usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.D... 阅读全文
posted @ 2014-07-27 17:34 XE2011 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 链接:https://github.com/450640526/HtmExplorer最低环境系统安装了.NET 4.0地址:http://www.baidu.com/s?word=.NET+4.0&tn=82013038_35_hao_pg&ie=utf-8浏览器的版本最低 IE9.0否则网页中的... 阅读全文
posted @ 2014-07-22 09:27 XE2011 阅读(1077) 评论(0) 推荐(1) 编辑
摘要: 新建HTML文档动态创建5个按钮 for (int i = 0; i < 5; i++) { Button button = new Button(); button.Location = new Point(button.Width *i, 10); //button.Click += new E... 阅读全文
posted @ 2014-07-21 19:23 XE2011 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 编译一次自动更新版本号http://blog.csdn.net/gqqnb/article/details/7213611 安装与运行复制IncBuildNo.exe到你的硬盘,例如 C:\windows\IncBuildNo.exe 在Visual Studio中打开任意一个项目或解决方案,... 阅读全文
posted @ 2014-07-21 19:18 XE2011 阅读(330) 评论(0) 推荐(0) 编辑
摘要: /*2014年7月8日19:56:45*/namespaceSystem.Windows.Forms{usingSystem;usingSystem.Drawing;publicpartialclassSearchBox:UserControl{publicSearchBox(){InitializeComponent();}publicnewstringText{get{returntextBo... 阅读全文
posted @ 2014-07-09 12:31 XE2011 阅读(257) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.IO;namespace文件名{publ... 阅读全文
posted @ 2014-07-09 12:30 XE2011 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 附件:http://files.cnblogs.com/xe2011/Webbrowser_Document_IsModified.rar该文档已被修改,是否保存修改结果?是:保存修改结果否:放弃修改结果取消:仍打开该文档触发这个对话框方法初始化 privatevoidForm1_Load(ob... 阅读全文
posted @ 2014-07-03 18:21 XE2011 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 尽可能接近WINDOWS 8的资源管理器效果(这里只模仿它的效果,处理文件功能不包括在内) TREEVIEW可以增加空白并且空白处不能单击 重绘三角箭头 重绘选中时的边框和填充色 重绘失去焦点时选中时的边框和填充色 重绘光标所在处的节点背景 MOUSE Hover 闪烁的问题处理 当TREEVIEW 阅读全文
posted @ 2014-06-30 22:34 XE2011 阅读(3662) 评论(7) 推荐(2) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 49 下一页