摘要:本节介绍使用 ASP.NET 创建的 XML Web 服务。有关创建/公开 XML Web 服务的更多信息,请参阅 ASP.NET 快速入门。有关将 XML Web 服务与 Windows 窗体一起使用的更多信息,请参阅 Windows 窗体和数据访问快速入门。 Internet 正在向下一代 Web 站点快速演进,今天的 Web 站点仅能为浏览器提供用户界面,而下一代可编程 Web 站点直接将企...
阅读全文
随笔分类 - Code
摘要:string str1 =Process.GetCurrentProcess().MainModule.FileName; //可获得当前执行的exe的文件名。 string str2=Environment.CurrentDirectory; //获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。 //备注 按照定义,如果该进程在本地或网络驱动器的根目录中启动, //则此属性的值为驱动...
阅读全文
摘要:usingSystem;usingSystem.Runtime.InteropServices;namespaceConsoleApplication{publicsealedclassEntryPoint{privateEntryPoint(){}[DllImport("Gdi32.dll",CharSet=CharSet.Auto,ExactSpelling=true)]publicstati...
阅读全文
摘要:下面的代码实现修改显示器分辨率和刷新频率的功能:usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.Runtime.InteropServices;namespaceScree...
阅读全文
摘要:全屏分辩率:Screen.PrimaryScreen.Bounds.Size工作区域分辩率:Screen.PrimaryScreen.WorkingArea.Size
阅读全文
摘要:usingSystem.Runtime.InteropServices; [System.Runtime.InteropServices.DllImport("user32.dll",EntryPoint="GetCursorPos")] publicexternstaticintGetCursorPos(refPOINTAPIlpPoint);publicstructPOINTAPI{ publ...
阅读全文
摘要:privatestring[]GetMoc(){string[]str=newstring[3];ManagementClassmcCpu=newManagementClass("win32_Processor");ManagementObjectCollectionmocCpu=mcCpu.GetInstances();foreach(ManagementObjectminmocCpu){str...
阅读全文

浙公网安备 33010602011771号