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

📄 frmaddport.frm

📁 全面网络扫描器VB源代码 很实用
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmaddport 
   BackColor       =   &H00000000&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Add Port Properties"
   ClientHeight    =   3210
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   5010
   ForeColor       =   &H00FFFFFF&
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3210
   ScaleWidth      =   5010
   Begin VB.CheckBox Check1 
      BackColor       =   &H80000003&
      Caption         =   "Selected"
      Height          =   255
      Left            =   360
      TabIndex        =   8
      Top             =   2040
      Value           =   1  'Checked
      Width           =   1215
   End
   Begin VB.CommandButton cmdsave 
      BackColor       =   &H80000009&
      Caption         =   "&Save"
      Height          =   375
      Left            =   2640
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   2400
      Width           =   1215
   End
   Begin VB.CommandButton cmdadd 
      BackColor       =   &H80000009&
      Caption         =   "&Add Port"
      Height          =   375
      Left            =   840
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   2400
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   285
      Index           =   2
      Left            =   1560
      TabIndex        =   5
      Top             =   1560
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   285
      Index           =   1
      Left            =   1560
      TabIndex        =   4
      Top             =   960
      Width           =   2535
   End
   Begin VB.TextBox Text1 
      Height          =   285
      Index           =   0
      Left            =   1560
      TabIndex        =   1
      Top             =   360
      Width           =   2535
   End
   Begin VB.Label Label1 
      BackColor       =   &H80000003&
      Caption         =   "Port Ditailes"
      Height          =   255
      Index           =   2
      Left            =   120
      TabIndex        =   3
      Top             =   1560
      Width           =   1335
   End
   Begin VB.Label Label1 
      BackColor       =   &H80000003&
      Caption         =   "Port Protocol"
      Height          =   255
      Index           =   1
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label1 
      BackColor       =   &H80000003&
      Caption         =   "Port Number"
      Height          =   255
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   360
      Width           =   1215
   End
End
Attribute VB_Name = "frmaddport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdadd_Click()
   On Error GoTo err:
   If Text1(0).Text = Val(Text1(0).Text) And Text1(0).Text <> "" And Text1(0).Text > 0 And Text1(0).Text < 65536 Then
       
       Port = Text1(0).Text + ","
       If Text1(1).Text = "" Then Port = Port + "None" + "," Else Port = Port + Text1(1).Text + ","
       If Text1(2).Text = "" Then Port = Port + "None" Else Port = Port + Text1(2).Text
       
       frmscan.lstports.ListItems.Add , , Port
       
       If Check1.value = 1 Then frmscan.lstports.ListItems(frmscan.lstports.ListItems.Count).Checked = True
       
       
       'clear text
       Text1(0).Text = ""
       Text1(1).Text = ""
       Text1(2).Text = ""
   Else
err:
       MsgBox "Err In Port Number ", , "Tip !"
       Text1(0).Text = ""
   End If
  
End Sub

Private Sub cmdsave_Click()
  a1 = MsgBox("Are You Want Save This Changes ? ", vbYesNo, "WARNNING !")
  If a1 = 6 Then Call frmscan.savep
End Sub

⌨️ 快捷键说明

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