📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Get HostName&IP"
ClientHeight = 1770
ClientLeft = 60
ClientTop = 345
ClientWidth = 4515
LinkTopic = "Form1"
ScaleHeight = 1770
ScaleWidth = 4515
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "Exit"
Height = 375
Left = 2520
TabIndex = 5
Top = 1200
Width = 975
End
Begin VB.CommandButton Command1
Caption = "GetHost/IP"
Height = 375
Left = 840
TabIndex = 4
Top = 1200
Width = 1095
End
Begin VB.TextBox Text2
Height = 270
Left = 1680
TabIndex = 3
Text = "Text2"
Top = 720
Width = 2415
End
Begin VB.TextBox Text1
Height = 270
Left = 1680
TabIndex = 2
Text = "Text1"
Top = 240
Width = 2415
End
Begin VB.Label Label2
Caption = "IP Address:"
Height = 255
Left = 240
TabIndex = 1
Top = 720
Width = 1215
End
Begin VB.Label Label1
Caption = "HostName:"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Width = 1215
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()
Text1 = GetIPHostName()
Text2 = GetIPAddress()
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -