⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ip2ip.frm

📁 IP2IP IP地址转换的小软件。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form1"
   ClientHeight    =   1245
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3210
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1245
   ScaleWidth      =   3210
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "清空"
      Height          =   375
      Left            =   2040
      TabIndex        =   6
      Top             =   720
      Width           =   975
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   120
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   720
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   375
      Left            =   2040
      TabIndex        =   4
      Top             =   240
      Width           =   975
   End
   Begin VB.TextBox Text4 
      Height          =   270
      Left            =   1560
      MaxLength       =   3
      TabIndex        =   3
      Top             =   240
      Width           =   375
   End
   Begin VB.TextBox Text3 
      Height          =   270
      Left            =   1080
      MaxLength       =   3
      TabIndex        =   2
      Top             =   240
      Width           =   375
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   600
      MaxLength       =   3
      TabIndex        =   1
      Top             =   240
      Width           =   375
   End
   Begin VB.TextBox Text1 
      BeginProperty DataFormat 
         Type            =   0
         Format          =   "0"
         HaveTrueFalseNull=   0
         FirstDayOfWeek  =   0
         FirstWeekOfYear =   0
         LCID            =   2052
         SubFormatType   =   0
      EndProperty
      Height          =   270
      Left            =   120
      MaxLength       =   3
      TabIndex        =   0
      Top             =   240
      Width           =   375
   End
   Begin VB.Label Label1 
      Caption         =   "   .   .   ."
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   150
      TabIndex        =   7
      Top             =   240
      Width           =   1815
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Then
MsgBox "输入错误,数据不能为空"
ElseIf Int(Text1.Text) > 255 Or Int(Text2.Text) > 255 Or Int(Text3.Text) > 255 Or Int(Text4.Text) > 255 Then
MsgBox "输入错误,数据大于255"
Else: Text5.Text = (Int(Text1.Text) * 255 * 255 * 255) + (Int(Text2.Text) * 255 * 255) + (Int(Text3.Text) * 255) + (Int(Text4.Text))
End If
End Sub


Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -