• 大小: 0.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-04-30
  • 语言: C#
  • 标签: 获取  IP  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForms_IP
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            textBox1.Text = IPClass1.GetLocalIp();
        }

        private void Form1_FormClosing(object sender FormClosingEventArgs e)
        {
            Application.Exit();
            this.Dispose();

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-08-19 14:08  WindowsForms_IP\
     目录           0  2020-07-06 12:27  WindowsForms_IP\.vs\
     目录           0  2020-07-06 12:27  WindowsForms_IP\.vs\WindowsForms_IP\
     目录           0  2020-07-06 12:27  WindowsForms_IP\.vs\WindowsForms_IP\v16\
     文件       43008  2020-08-19 14:08  WindowsForms_IP\.vs\WindowsForms_IP\v16\.suo
     文件         189  2020-07-06 12:27  WindowsForms_IP\App.config
     文件        3789  2020-07-06 18:26  WindowsForms_IP\Form1.Designer.cs
     文件         703  2020-08-19 14:08  WindowsForms_IP\Form1.cs
     文件       12549  2020-07-06 18:26  WindowsForms_IP\Form1.resx
     文件         689  2020-07-06 12:29  WindowsForms_IP\IPClass1.cs
     文件         527  2020-07-06 12:27  WindowsForms_IP\Program.cs
     目录           0  2020-07-06 13:07  WindowsForms_IP\Properties\
     文件        1390  2020-07-06 13:07  WindowsForms_IP\Properties\AssemblyInfo.cs
     文件        2843  2020-07-06 12:27  WindowsForms_IP\Properties\Resources.Designer.cs
     文件        5612  2020-07-06 12:27  WindowsForms_IP\Properties\Resources.resx
     文件        1102  2020-07-06 12:27  WindowsForms_IP\Properties\Settings.Designer.cs
     文件         249  2020-07-06 12:27  WindowsForms_IP\Properties\Settings.settings
     文件       67646  2020-07-06 13:17  WindowsForms_IP\Rwd_logo_128.ico
     文件        4286  2020-07-06 13:05  WindowsForms_IP\Rwd_logo_32.ico
     文件        3871  2020-07-06 13:17  WindowsForms_IP\WindowsForms_IP.csproj
     文件        1135  2020-07-06 12:27  WindowsForms_IP\WindowsForms_IP.sln
     目录           0  2020-07-06 12:27  WindowsForms_IP\bin\
     目录           0  2020-08-19 14:08  WindowsForms_IP\bin\Debug\
     文件       82432  2020-08-19 14:08  WindowsForms_IP\bin\Debug\WindowsForms_IP.exe
     文件         189  2020-07-06 12:27  WindowsForms_IP\bin\Debug\WindowsForms_IP.exe.config
     文件       34304  2020-08-19 14:08  WindowsForms_IP\bin\Debug\WindowsForms_IP.pdb
     目录           0  2020-07-06 12:27  WindowsForms_IP\obj\
     目录           0  2020-07-06 18:26  WindowsForms_IP\obj\Debug\
     文件         214  2020-07-06 12:27  WindowsForms_IP\obj\Debug\.NETframeworkVersion=v4.7.2.AssemblyAttributes.cs
     文件        1597  2020-07-06 13:07  WindowsForms_IP\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7261  2020-07-06 13:17  WindowsForms_IP\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略9个文件信息

评论

共有 条评论