静观其变

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2005年9月6日

摘要: 本节介绍使用 ASP.NET 创建的 XML Web 服务。有关创建/公开 XML Web 服务的更多信息,请参阅 ASP.NET 快速入门。有关将 XML Web 服务与 Windows 窗体一起使用的更多信息,请参阅 Windows 窗体和数据访问快速入门。 Internet 正在向下一代 Web 站点快速演进,今天的 Web 站点仅能为浏览器提供用户界面,而下一代可编程 Web 站点直接将企... 阅读全文
posted @ 2005-09-06 11:16 wangyue 阅读(609) 评论(0) 推荐(0) 编辑

2005年8月31日

摘要: string str1 =Process.GetCurrentProcess().MainModule.FileName; //可获得当前执行的exe的文件名。 string str2=Environment.CurrentDirectory; //获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。 //备注 按照定义,如果该进程在本地或网络驱动器的根目录中启动, //则此属性的值为驱动... 阅读全文
posted @ 2005-08-31 13:41 wangyue 阅读(1354) 评论(0) 推荐(0) 编辑

2005年8月10日

摘要: 一、创建和释放TRegistry对象  1.创建TRegistry对象。为了操作注册表,要创建一个TRegistry对象:ARegistry := TRegistry.Create;  2.释放TRegistry对象。对注册表操作结束后,应释放TRegistry对象所占内存:ARegistry.Destroy。二、指定要操作的键  操作注册表时,首先应指定操作的主键:先给属性RootKey赋值以指... 阅读全文
posted @ 2005-08-10 13:57 wangyue 阅读(2187) 评论(1) 推荐(0) 编辑

2005年8月8日

摘要: usingSystem;usingSystem.Runtime.InteropServices;namespaceConsoleApplication{publicsealedclassEntryPoint{privateEntryPoint(){}[DllImport("Gdi32.dll",CharSet=CharSet.Auto,ExactSpelling=true)]publicstati... 阅读全文
posted @ 2005-08-08 09:48 wangyue 阅读(1312) 评论(0) 推荐(0) 编辑

2005年8月7日

摘要: 下面的代码实现修改显示器分辨率和刷新频率的功能:usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.Runtime.InteropServices;namespaceScree... 阅读全文
posted @ 2005-08-07 23:09 wangyue 阅读(2347) 评论(0) 推荐(0) 编辑

摘要: 全屏分辩率:Screen.PrimaryScreen.Bounds.Size工作区域分辩率:Screen.PrimaryScreen.WorkingArea.Size 阅读全文
posted @ 2005-08-07 00:14 wangyue 阅读(966) 评论(0) 推荐(0) 编辑

2005年7月21日

摘要: usingSystem.Runtime.InteropServices; [System.Runtime.InteropServices.DllImport("user32.dll",EntryPoint="GetCursorPos")] publicexternstaticintGetCursorPos(refPOINTAPIlpPoint);publicstructPOINTAPI{ publ... 阅读全文
posted @ 2005-07-21 09:28 wangyue 阅读(972) 评论(0) 推荐(0) 编辑

2005年6月13日

摘要: privatestring[]GetMoc(){string[]str=newstring[3];ManagementClassmcCpu=newManagementClass("win32_Processor");ManagementObjectCollectionmocCpu=mcCpu.GetInstances();foreach(ManagementObjectminmocCpu){str... 阅读全文
posted @ 2005-06-13 11:04 wangyue 阅读(6289) 评论(3) 推荐(0) 编辑

2005年2月25日

摘要: "工具箱"->"添加/删除项"->"COM 组件"->"Microsoft Web 浏览器"->对勾->确定 IE样的东西就上到工具箱上了,拖过来即可使用 阅读全文
posted @ 2005-02-25 20:43 wangyue 阅读(2229) 评论(3) 推荐(0) 编辑

摘要: 在"解决方案资源管理器"->"引用"->右键->"添加引用"->".NET"->"Microsoft.mshtml"->"选择"->"确定"烦不烦,有时在这里加,有时在那里加 阅读全文
posted @ 2005-02-25 20:39 wangyue 阅读(855) 评论(0) 推荐(0) 编辑