欢迎来到天天文库
浏览记录
ID:27539335
大小:204.91 KB
页数:17页
时间:2018-12-03
《c制作ip地址切换的源程序代码》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、C#制作IP地址切换的源程序代码1.启动代码:12.主界面没计器代码:13.主界而程序代码:74.Xml文件操作代码:141.启动代码:usingSystem;usingSystem.Collections.Generic;usingSystem.Windows.Forms;namespaceIpChange{staticclassProgram{///〈summary〉///应用程序的主入门点。///〈/summary〉[STAThread]staticvoidMain(){Applicatio
2、n.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(newForml()):}}}2.主界面设计器代码:namespaceTpChange{partialclassForml{///〈summary〉///必需的设计器变量。///〈/summary>privateSystem.ComponentModel.IContainercomponents=null;III〈s
3、ummary〉///淸理所宥正在使用的资源。IIIIII〈paramname="disposing">如果应释放托管资源,为true;否则为false。protectedoverridevoidDispose(booldisposing){if(disposing&&(components!=null)){components.Dispose();}base.Dispose(disposing);}^regionWindows窗体设计器z:l:成的代阿///〈s
4、ummary〉///设计器支持所需的方法-不要///使用代码编辑器修改此方法的内容。///〈/summary〉privatevoidTnitializeComponent(){this.pnlNctworklnfo=newSystem.Windows.Forms.Panel();this.dgvNetwork=newSystem.Windows.Forms.DatciGridViewO:this,panel1=newSystem.Windows.Forms.Panel();this.btnSetT
5、P=newSystem.Windows.Forms.Button():this,label1=newSystem.Windows.Forms.Label();this.btnSavcLocal=newSystem.Windows.Forms.Button();this.pnllplnfo二newSystem.Windows.Forms.Panel0;this.dgvLocalXml=newSystem.Windows.Forms.DataGridViewO;this,panel2=newSyste
6、m.Windows.Forms.Panel();this,label3=newSystem.Windows.Forms.Label();this.txtLocallpNcimc=newSystem.Windows.Forms.TcxtBox();this.Iabel2=newSystem.Windows.Forms.Label0;this.pnlNetworklnfo.SuspendLayout();((System.ComponentModel.TSupportTnitialize)(this.
7、dgvNetwork)).BeginTnit():this,panel1.SuspendLayout():this,pnlTpTnfo.SuspendLayout():((System.ComponentModel.ISupportInitialize)(this.dgvLocalXml)).Bcginlnit();this.panel2.SuspendLayout0;this.SuspendLayout();//ifpnlNetworkTnfothis,pnlNetworkInfo.Contro
8、ls.Add(this.dgvNetwork):this.pnlNetworkTnfo.Controls.Add(this,panel1):this.pnlNctworklnfo.Dock=System.Windows.Forms.DockStylc.Top;this.pnlNetworklnfo.Location二newSystem.Drawing.Point(0,0);this.pnlNetworklnfo.Name="pnlNetworklnfo";this.pnlNetwo
此文档下载收益归作者所有