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

📄 frmmain.frm

📁 IP转数字的程序QQ:314140890
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmMain 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "IP转换器 By QQ:314140890"
   ClientHeight    =   675
   ClientLeft      =   45
   ClientTop       =   360
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   675
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "关闭"
      Height          =   555
      Left            =   4320
      TabIndex        =   9
      Top             =   60
      Width           =   315
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关于"
      Height          =   555
      Left            =   4020
      TabIndex        =   8
      Top             =   60
      Width           =   315
   End
   Begin VB.CommandButton Command1 
      Caption         =   "转换"
      Height          =   555
      Left            =   3660
      TabIndex        =   7
      Top             =   60
      Width           =   315
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   900
      Locked          =   -1  'True
      TabIndex        =   6
      Text            =   "IP转换器 By QQ:314140890"
      Top             =   360
      Width           =   2715
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   3
      Left            =   3060
      TabIndex        =   4
      Top             =   60
      Width           =   555
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   2
      Left            =   2340
      TabIndex        =   3
      Top             =   60
      Width           =   555
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   1
      Left            =   1620
      TabIndex        =   2
      Top             =   60
      Width           =   555
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Index           =   0
      Left            =   900
      TabIndex        =   1
      Top             =   60
      Width           =   555
   End
   Begin VB.Label Label2 
      Caption         =   "转换结果:"
      Height          =   255
      Left            =   60
      TabIndex        =   5
      Top             =   360
      Width           =   975
   End
   Begin VB.Shape Shape1 
      FillStyle       =   0  'Solid
      Height          =   75
      Index           =   2
      Left            =   2940
      Shape           =   3  'Circle
      Top             =   240
      Width           =   75
   End
   Begin VB.Shape Shape1 
      FillStyle       =   0  'Solid
      Height          =   75
      Index           =   1
      Left            =   2220
      Shape           =   3  'Circle
      Top             =   240
      Width           =   75
   End
   Begin VB.Shape Shape1 
      FillStyle       =   0  'Solid
      Height          =   75
      Index           =   0
      Left            =   1500
      Shape           =   3  'Circle
      Top             =   240
      Width           =   75
   End
   Begin VB.Label Label1 
      Caption         =   "原始IP:"
      Height          =   255
      Left            =   60
      TabIndex        =   0
      Top             =   60
      Width           =   1095
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
On Error Resume Next
Dim i As Integer
For i = 0 To 3
  If Int(Text1(i).Text) > 255 Or Int(Text1(i).Text) < 0 Then
    MsgBox "出现了IP输入错误!", vbCritical, "QQ:314140890警告"
    Exit Sub
  End If
Next i
Text2.Text = Trim(Str(Int(Text1(0).Text) * 256 * 256 * 256 + Int(Text1(1).Text) * 256 * 256 + Int(Text1(2).Text) * 256 + Int(Text1(3).Text)))
MsgBox "转换完成!", vbInformation, "QQ:314140890提示信息"
End Sub

Private Sub Command2_Click()
frmAbout.Show
End Sub

Private Sub Command3_Click()
MsgBox "QQ:314140890  -  谢谢使用", vbInformation
End
End Sub

Private Sub Form_Unload(Cancel As Integer)
MsgBox "QQ:314140890  -  谢谢使用", vbInformation
End Sub

⌨️ 快捷键说明

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