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

📄 dlgreservoirpara.frm

📁 水利计算程序!年径流量!调节计算!调洪计算.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form DlgReservoirPara 
   Caption         =   "调洪计算参数录入"
   ClientHeight    =   3750
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8235
   LinkTopic       =   "Form1"
   ScaleHeight     =   3750
   ScaleWidth      =   8235
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   4
      Left            =   6480
      TabIndex        =   12
      Top             =   2400
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   3
      Left            =   4920
      TabIndex        =   11
      Top             =   2400
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   2
      Left            =   3360
      TabIndex        =   10
      Top             =   2400
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   1
      Left            =   1800
      TabIndex        =   9
      Top             =   2400
      Width           =   1575
   End
   Begin VB.TextBox Text3 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   8
      Top             =   2400
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   3
      Left            =   4920
      TabIndex        =   7
      Top             =   1440
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   2
      Left            =   3360
      TabIndex        =   6
      Top             =   1440
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   1
      Left            =   1800
      TabIndex        =   5
      Top             =   1440
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   4
      Top             =   1440
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   3
      Left            =   4920
      TabIndex        =   3
      Top             =   480
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   2
      Left            =   3360
      TabIndex        =   2
      Top             =   480
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Height          =   375
      Index           =   1
      Left            =   1800
      TabIndex        =   1
      Top             =   480
      Width           =   1575
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取    消"
      Height          =   615
      Left            =   6720
      TabIndex        =   14
      Top             =   1200
      Width           =   1335
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确    认"
      Height          =   615
      Left            =   6720
      TabIndex        =   13
      Top             =   120
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   $"DlgReservoirPara.frx":0000
      Height          =   615
      Left            =   240
      TabIndex        =   29
      Top             =   3000
      Width           =   7815
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "溢洪道孔数:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   13
      Left            =   3360
      TabIndex        =   28
      Top             =   120
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "堰顶高程:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   3
      Left            =   4920
      TabIndex        =   27
      Top             =   120
      Width           =   1575
   End
   Begin VB.Label Label1 
      BorderStyle     =   1  'Fixed Single
      Caption         =   "Label1"
      Height          =   375
      Index           =   2
      Left            =   3000
      TabIndex        =   26
      Top             =   480
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "溢洪道孔宽:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   1
      Left            =   1800
      TabIndex        =   25
      Top             =   120
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "闸门高度:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   0
      Left            =   240
      TabIndex        =   24
      Top             =   120
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "安全泄量(m3/s):"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   12
      Left            =   6480
      TabIndex        =   23
      Top             =   2040
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "装机容量(万KW):"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   11
      Left            =   4920
      TabIndex        =   22
      Top             =   2040
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "正常高水位:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   10
      Left            =   3360
      TabIndex        =   21
      Top             =   2040
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "防洪高水位:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   9
      Left            =   1800
      TabIndex        =   20
      Top             =   2040
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "防洪限制水位:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   8
      Left            =   240
      TabIndex        =   19
      Top             =   2040
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "底坎高程:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   7
      Left            =   4920
      TabIndex        =   18
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "底孔数:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   6
      Left            =   3360
      TabIndex        =   17
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "底孔宽:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   5
      Left            =   1800
      TabIndex        =   16
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label1 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "底孔高:"
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   4
      Left            =   240
      TabIndex        =   15
      Top             =   1080
      Width           =   1575
   End
End
Attribute VB_Name = "DlgReservoirPara"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdOK_Click()
Me.Tag = "OK"
Me.Hide
End Sub

Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
Select Case KeyCode
       Case vbKeyReturn, vbKeyDown
       If Index < Text1.UBound Then
           Text1(Index + 1).SetFocus
    
        Else
           Text2(0).SetFocus
        End If
End Select
End Sub
Private Sub Form_Load()
    Text1(0).Text = 12
    Text1(1).Text = 15
    Text1(2).Text = 10
    Text1(3).Text = 108
    Text2(0).Text = 8
    Text2(1).Text = 13
    Text2(2).Text = 1
    Text2(3).Text = 82
    Text3(0).Text = ""
    Text3(1).Text = 121
    Text3(2).Text = 120
    Text3(3).Text = 120
    Text3(4).Text = 20000
     
End Sub

Private Sub Text2_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
    Select Case KeyCode
       Case vbKeyReturn, vbKeyDown
       If Index < Text2.UBound Then
           Text2(Index + 1).SetFocus
        Else
           Text3(0).SetFocus
        End If
End Select
End Sub

Private Sub Text3_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
    Select Case KeyCode
       Case vbKeyReturn, vbKeyDown
       If Index < Text3.UBound Then
           Text3(Index + 1).SetFocus
       Else
           cmdOK.SetFocus
       End If
End Select
End Sub

⌨️ 快捷键说明

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