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

📄 断面1.frm

📁 用visual basic 开发的界面
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 断面1 
   Caption         =   "圆形孔口断面参数输入"
   ClientHeight    =   4965
   ClientLeft      =   2745
   ClientTop       =   3465
   ClientWidth     =   11190
   LinkTopic       =   "Form3"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4965
   ScaleWidth      =   11190
   Begin VB.Frame Frame2 
      Height          =   4455
      Left            =   5040
      TabIndex        =   16
      Top             =   240
      Width           =   5895
      Begin VB.PictureBox Picture1 
         Height          =   3975
         Left            =   120
         Picture         =   "断面1.frx":0000
         ScaleHeight     =   3915
         ScaleWidth      =   5595
         TabIndex        =   17
         Top             =   240
         Width           =   5655
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "断面参数输入"
      Height          =   4455
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   4815
      Begin VB.CommandButton btncancel 
         Caption         =   "取消"
         Height          =   495
         Index           =   2
         Left            =   3360
         TabIndex        =   15
         Top             =   3480
         Width           =   1215
      End
      Begin VB.CommandButton btnreinput 
         Caption         =   "重新输入"
         Height          =   495
         Index           =   1
         Left            =   1800
         TabIndex        =   14
         Top             =   3480
         Width           =   1215
      End
      Begin VB.CommandButton btnconfirm 
         Caption         =   "确定"
         Height          =   495
         Index           =   0
         Left            =   240
         TabIndex        =   13
         Top             =   3480
         Width           =   1215
      End
      Begin VB.TextBox txtH 
         Height          =   375
         Left            =   2520
         TabIndex        =   11
         Top             =   2700
         Width           =   1455
      End
      Begin VB.TextBox txtR 
         Height          =   375
         Left            =   2520
         TabIndex        =   8
         Top             =   1940
         Width           =   1455
      End
      Begin VB.TextBox txtB 
         Height          =   375
         Left            =   2520
         TabIndex        =   5
         Top             =   1180
         Width           =   1455
      End
      Begin VB.TextBox TxtA 
         Height          =   375
         Left            =   2520
         TabIndex        =   2
         Top             =   420
         Width           =   1455
      End
      Begin VB.Label Label1 
         Caption         =   "mm"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   3
         Left            =   4200
         TabIndex        =   12
         Top             =   2640
         Width           =   375
      End
      Begin VB.Label Label2 
         Caption         =   "孔口结构模型厚度H:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   10
         Top             =   2760
         Width           =   2415
      End
      Begin VB.Label Label1 
         Caption         =   "mm"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   2
         Left            =   4200
         TabIndex        =   9
         Top             =   1880
         Width           =   375
      End
      Begin VB.Label Label2 
         Caption         =   "孔口断面圆孔半径R:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   7
         Top             =   2000
         Width           =   2295
      End
      Begin VB.Label Label1 
         Caption         =   "mm"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   1
         Left            =   4200
         TabIndex        =   6
         Top             =   1120
         Width           =   375
      End
      Begin VB.Label Label2 
         Caption         =   "孔口断面高度B:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   4
         Top             =   1240
         Width           =   1815
      End
      Begin VB.Label Label1 
         Caption         =   "mm"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Index           =   0
         Left            =   4200
         TabIndex        =   3
         Top             =   360
         Width           =   375
      End
      Begin VB.Label Label2 
         Caption         =   "孔口断面宽度A:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   1
         Top             =   480
         Width           =   1815
      End
   End
End
Attribute VB_Name = "断面1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
  
End Sub

Private Sub btncancel_Click(Index As Integer)
Unload Me
End
End Sub

Private Sub btnconfirm_Click(Index As Integer)
  A = Val(TxtA.Text)
  If A < 0.000001 Then
    respond = MsgBox("孔口断面宽度A不能等于零!", vbExclamation + vbOKOnly, "错误")
  Exit Sub
  End If
  B = Val(txtB.Text)
  If B < 0.000001 Then
    respond = MsgBox("孔口断面高度B不能等于零!", vbExclamation + vbOKOnly, "错误")
  Exit Sub
  End If
  R = Val(txtR.Text)
  If R < 0.000001 Then
    respond = MsgBox("孔口断圆孔半径R不能等于零!", vbExclamation + vbOKOnly, "错误")
  Exit Sub
  End If
  If R >= A Or R >= B Then
    respond = MsgBox("圆孔半径R必须小于断面长度和宽度!", vbExclamation + vbOKOnly, "错误")
  Exit Sub
  End If
  H = Val(txtH.Text)
  If H < 0.000001 Then
    respond = MsgBox("孔口结构模型厚度H不能等于零!", vbExclamation + vbOKOnly, "错误")
  Exit Sub
  End If
  Unload Me
End Sub

Private Sub Text1_Change(Index As Integer)

End Sub

Private Sub Text2_Change(Index As Integer)

End Sub

Private Sub btnreinput_Click(Index As Integer)
TxtA.Text = ""
txtB.Text = ""
txtR.Text = ""
txtH.Text = ""
End Sub

⌨️ 快捷键说明

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