📄 frmsetup.frm
字号:
VERSION 5.00
Begin VB.Form frmSetup
Caption = "设置"
ClientHeight = 2265
ClientLeft = 60
ClientTop = 345
ClientWidth = 5145
LinkTopic = "Form1"
ScaleHeight = 2265
ScaleWidth = 5145
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame1
Caption = "SMTP服务器设置"
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2175
Left = 0
TabIndex = 0
Top = 60
Width = 5115
Begin VB.CommandButton cmdQuit
Caption = "Cancel"
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 3480
TabIndex = 6
Top = 1620
Width = 1215
End
Begin VB.CommandButton cmdQuit
Caption = "OK"
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 2100
TabIndex = 5
Top = 1620
Width = 1215
End
Begin VB.TextBox txtPort
Appearance = 0 'Flat
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1800
TabIndex = 2
Text = "80"
Top = 960
Width = 855
End
Begin VB.TextBox txtIp
Appearance = 0 'Flat
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1800
TabIndex = 1
Top = 480
Width = 3015
End
Begin VB.Label Label2
Caption = "SMTP服务器端口:"
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 1020
Width = 1695
End
Begin VB.Label Label1
Caption = "SMTP服务器地址:"
BeginProperty Font
Name = "幼圆"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 3
Top = 480
Width = 1695
End
End
End
Attribute VB_Name = "frmSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdQuit_Click(Index As Integer)
If Index = 0 Then
smtp.ServerIp = txtIp.Text
smtp.ServerPort = CLng(txtPort.Text)
End If
Unload Me
End Sub
Private Sub Form_Load()
txtIp.Text = smtp.ServerIp
txtPort.Text = smtp.ServerPort
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -