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

📄 presetname.frm

📁 the attached file contains artifitial neural network code
💻 FRM
字号:
VERSION 5.00
Begin VB.Form PresetName 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Preset name"
   ClientHeight    =   1815
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4095
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "PresetName.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1815
   ScaleWidth      =   4095
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.TextBox InputText 
      Height          =   285
      Left            =   240
      TabIndex        =   0
      Top             =   840
      Width           =   3615
   End
   Begin VB.PictureBox Title 
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   0
      ScaleHeight     =   615
      ScaleWidth      =   3495
      TabIndex        =   3
      TabStop         =   0   'False
      Top             =   0
      Width           =   3495
      Begin VB.Label Label 
         BackColor       =   &H80000005&
         Caption         =   "Specify a name for the preset."
         ForeColor       =   &H80000008&
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   4
         Top             =   180
         Width           =   3375
      End
      Begin VB.Line TitleLine 
         BorderColor     =   &H80000015&
         Index           =   0
         X1              =   120
         X2              =   1080
         Y1              =   480
         Y2              =   480
      End
      Begin VB.Line TitleLine 
         BorderColor     =   &H00E0E0E0&
         Index           =   1
         X1              =   600
         X2              =   1560
         Y1              =   495
         Y2              =   495
      End
   End
   Begin VB.CommandButton Command 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   375
      Index           =   1
      Left            =   2400
      TabIndex        =   2
      Top             =   1320
      Width           =   1575
   End
   Begin VB.CommandButton Command 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Index           =   0
      Left            =   120
      TabIndex        =   1
      Top             =   1320
      Width           =   1575
   End
End
Attribute VB_Name = "PresetName"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Canceled As Boolean
Private OriginalInputs() As Double
Private ChangedInputs() As Double

Private Sub Command_Click(Index As Integer)
    Select Case Index
    Case 0:
        Canceled = False
        If Trim(InputText.Text) = "" Then
            MsgBox "The preset name is empty." & vbCrLf & vbCrLf & "Please specify a valid name.", vbExclamation
            InputText.SetFocus
            Exit Sub
        ElseIf InStr(1, InputText.Text, "\") Or InStr(1, InputText.Text, "/") Or InStr(1, InputText.Text, ":") Or InStr(1, InputText.Text, "*") Or InStr(1, InputText.Text, "?") Or InStr(1, InputText.Text, """") Or InStr(1, InputText.Text, "<") Or InStr(1, InputText.Text, ">") Or InStr(1, InputText.Text, "|") Then
            MsgBox "The preset name contains one or more of the following invalid characters:" & vbCrLf & vbCrLf & "   \ / : * ? "" < > |" & vbCrLf & vbCrLf & "Please specify a valid name.", vbExclamation
            InputText.SetFocus
            Exit Sub
        End If
    Case 1:
        Canceled = True
    End Select
    Me.Hide
End Sub

Private Sub Form_Load()
    Canceled = True
End Sub

Private Sub Form_Resize()
    Title.Width = Me.ScaleWidth
    TitleLine(0).X1 = 0
    TitleLine(0).X2 = Me.ScaleWidth
    TitleLine(0).Y1 = Title.Height - 30
    TitleLine(0).Y2 = Title.Height - 30
    TitleLine(1).X1 = 0
    TitleLine(1).X2 = Me.ScaleWidth
    TitleLine(1).Y1 = Title.Height - 15
    TitleLine(1).Y2 = Title.Height - 15
End Sub

Public Sub Prepare(PresetTitle As String)
    InputText.Text = PresetTitle
End Sub

Public Function Extract(ByRef PresetTitle As String) As Boolean
    If Canceled Then
        PresetTitle = ""
    Else
        PresetTitle = InputText.Text
    End If
    Unload Me
    Extract = Not Canceled
End Function

Private Sub InputText_GotFocus()
    InputText.SelStart = 0
    InputText.SelLength = Len(InputText.Text)
End Sub

⌨️ 快捷键说明

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