zoukankan      html  css  js  c++  java
  • C# 读写 XML

    引用:http://www.cnblogs.com/xugang/archive/2010/04/17/1714199.html

    IPAddress.xml   文件如下:

    <?xml version="1.0" encoding="utf-8"?>
    <IP>
          <IPAddress>192.168.0.15</IPAddress>
    </IP>

    在 Form 窗体(读取XML配置.Designer.cs)中有如下控件:

    复制代码
    代码
            private  System.Windows.Forms.Button  button1;//“读取”按钮
            private  System.Windows.Forms.Button  button2;  //“修改”按钮
            private  System.Windows.Forms.TextBox  textBox1;// 用于显示和修改IP地址
            private  System.Windows.Forms.Label  label1;    // 显示“IP地址:”
            private  System.Windows.Forms.Button  button3;  // “保存”按钮
    复制代码

    读取XML配置.cs  文件如下:

    按 Ctrl+C 复制代码
    按 Ctrl+C 复制代码
  • 相关阅读:
    图片上传
    解决Vuex持久化插件-在F5刷新页面后数据不见的问题
    vue登录
    拖动排序的vue组件
    vue图片懒加载
    vue中使用图片预加载
    前端架构知识体系
    html判断IE版本
    HighCharts 在IE8下饼图不显示的问题
    新一代调试王者Console
  • 原文地址:https://www.cnblogs.com/zhangxp1129/p/2674681.html
Copyright © 2011-2022 走看看