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

📄 form22.frm

📁 某大学开发的一个用于对微波传输线状态进行模拟的软件
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   14.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   210
            TabIndex        =   16
            Top             =   525
            Width           =   855
         End
         Begin VB.Label Label6 
            Caption         =   "F  ="
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   14.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   210
            TabIndex        =   15
            Top             =   1575
            Width           =   855
         End
         Begin VB.Label Label11 
            Caption         =   "D  ="
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   14.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   210
            TabIndex        =   14
            Top             =   1050
            Width           =   855
         End
         Begin VB.Label Label12 
            Caption         =   "Er ="
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   14.25
               Charset         =   134
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   345
            Left            =   210
            TabIndex        =   13
            Top             =   2115
            Width           =   855
         End
         Begin VB.Label Label18 
            Caption         =   "GHz"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Left            =   3060
            TabIndex        =   12
            Top             =   1575
            Width           =   405
         End
         Begin VB.Label Label20 
            Caption         =   "mm"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Left            =   3060
            TabIndex        =   11
            Top             =   510
            Width           =   405
         End
         Begin VB.Label Label21 
            Caption         =   "mm"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Left            =   3060
            TabIndex        =   10
            Top             =   1050
            Width           =   405
         End
      End
      Begin VB.PictureBox Picture1 
         Height          =   4100
         Left            =   90
         ScaleHeight     =   4035
         ScaleWidth      =   3240
         TabIndex        =   4
         Top             =   270
         Visible         =   0   'False
         Width           =   3300
         Begin VB.Image Image2 
            Height          =   4100
            Left            =   0
            Stretch         =   -1  'True
            Top             =   0
            Width           =   3300
         End
      End
      Begin VB.PictureBox Picture2 
         Height          =   4100
         Left            =   90
         ScaleHeight     =   4035
         ScaleWidth      =   3240
         TabIndex        =   3
         Top             =   270
         Visible         =   0   'False
         Width           =   3300
         Begin VB.Image Image1 
            Height          =   4100
            Left            =   0
            Stretch         =   -1  'True
            Top             =   0
            Width           =   3300
         End
      End
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   350
      Left            =   4710
      TabIndex        =   1
      Top             =   5340
      Width           =   1000
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   350
      Left            =   6270
      TabIndex        =   0
      Top             =   5340
      Width           =   1000
   End
   Begin ResizeLibCtl.ReSize ReSize1 
      Left            =   90
      Top             =   5250
      _Version        =   131072
      _ExtentX        =   741
      _ExtentY        =   741
      _StockProps     =   0
      Enabled         =   -1  'True
      FormMinWidth    =   0
      FormMinHeight   =   0
      FormDesignHeight=   5955
      FormDesignWidth =   7620
   End
   Begin ComctlLib.TabStrip TabStrip1 
      Height          =   4995
      Left            =   105
      TabIndex        =   32
      Top             =   150
      Width           =   7305
      _ExtentX        =   12885
      _ExtentY        =   8811
      _Version        =   327682
      BeginProperty Tabs {0713E432-850A-101B-AFC0-4210102A8DA7} 
         NumTabs         =   2
         BeginProperty Tab1 {0713F341-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   " 膜 片 "
            Key             =   "Group1"
            Object.Tag             =   ""
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {0713F341-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   " 电感棒 "
            Key             =   "Group2"
            Object.Tag             =   ""
            ImageVarType    =   2
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
End
Attribute VB_Name = "Form22"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
Dim pi As Double
pi = 4 * Atn(1)

If Frame2.Visible = True Then
Text2.Text = "?"
Dim a, d, t, f, er, lp, ctg, b As Double

a = Text1.Text
d = Text5.Text
t = Text13.Text
f = Text14.Text
er = Text7.Text
lp = 300 / (f * Sqr(er))
ctg = pi * (d - t) / (2 * a)
b = (-lp / a) * ctg ^ 2
 Text2.Text = Format(b, "##########.0000000000")
End If

If Frame3.Visible = True Then
Text3.Text = "?"
Dim a1, d1, f1, er1, lp1, ct, b1 As Double
a1 = Text11.Text
d1 = Text4.Text
f1 = Text6.Text
er1 = Text12.Text
lp1 = 300 / (f1 * Sqr(er1))
ct = 4 * a1 / (pi * d1 * Exp(1) * Exp(1))
b1 = -2 * lp1 / (a1 * Log(ct))
Text3.Text = Format(b1, "##########.0000000000")
End If
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    Dim i As Integer
    '处理 ctrl+tab 键,移动到下一个选项卡
    If Shift = vbCtrlMask And KeyCode = vbKeyTab Then
        i = TabStrip1.SelectedItem.Index
        If i = TabStrip1.Tabs.Count Then
            '最后一个选项卡,返回到选项卡 1
            Set TabStrip1.SelectedItem = TabStrip1.Tabs(1)
        Else
            ' 选项卡序数加 1
            Set TabStrip1.SelectedItem = TabStrip1.Tabs(i + 1)
        End If
    End If
End Sub

Private Sub Form_Load()
    '窗体居中
     Me.Left = 1200
   Me.Top = 1200
   Me.Width = 8000
   Me.Height = 6000
   Image1.Picture = LoadPicture(App.Path & "\image\bddgmp.bmp")
   Image2.Picture = LoadPicture(App.Path & "\image\bddgb.bmp")
   Picture2.Visible = True
End Sub

 Private Sub TabStrip1_Click()
    
     Dim i As Integer
     '显示并激活选中的选项卡控件
     '隐藏并禁止所有其它控件
      For i = 1 To TabStrip1.Tabs.Count
        If i = TabStrip1.SelectedItem.Index Then
           Frame2.Visible = False
           Frame3.Visible = True
           Me.Picture1.Visible = True
           Me.Picture2.Visible = False
         Else
           Frame2.Visible = True
           Frame3.Visible = False
            Me.Picture2.Visible = True
            Me.Picture1.Visible = False
        End If
    Next
    
End Sub

⌨️ 快捷键说明

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