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

📄 齿轮计算-form1.frm

📁 锥齿轮CAD设计
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H80000018&
   Caption         =   "齿轮类零件CAD研制"
   ClientHeight    =   7155
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7635
   FillColor       =   &H00FFFFFF&
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   7155
   ScaleWidth      =   7635
   StartUpPosition =   2  '屏幕中心
   Begin VB.Timer Timer2 
      Interval        =   200
      Left            =   0
      Top             =   720
   End
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   0
      Top             =   6720
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   360
      Left            =   1800
      Locked          =   -1  'True
      TabIndex        =   18
      Top             =   6735
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFFF&
      ForeColor       =   &H00000000&
      Height          =   360
      Left            =   5280
      Locked          =   -1  'True
      TabIndex        =   16
      Top             =   6735
      Width           =   1215
   End
   Begin VB.CommandButton tc 
      BackColor       =   &H00FFC0C0&
      Caption         =   "Exit"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2040
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   5280
      Width           =   975
   End
   Begin VB.CommandButton bz 
      BackColor       =   &H00FFC0C0&
      Caption         =   "Help"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   480
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   5280
      Width           =   975
   End
   Begin VB.CommandButton xhjs 
      BackColor       =   &H00FFC0C0&
      Caption         =   "校核计算"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Index           =   2
      Left            =   4800
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   2640
      Width           =   1575
   End
   Begin VB.CommandButton jhjs 
      BackColor       =   &H00FFC0C0&
      Caption         =   "几何计算"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Index           =   1
      Left            =   4800
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1560
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H80000018&
      Caption         =   "  请选择齿轮类型:  "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   3495
      Left            =   480
      TabIndex        =   3
      Top             =   1080
      Width           =   2655
      Begin VB.OptionButton Option1 
         BackColor       =   &H80000018&
         Caption         =   "Option1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   320
         Left            =   480
         TabIndex        =   13
         Top             =   600
         Width           =   255
      End
      Begin VB.OptionButton Option3 
         BackColor       =   &H80000018&
         Caption         =   "Option3"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   320
         Left            =   480
         TabIndex        =   12
         Top             =   2520
         Width           =   255
      End
      Begin VB.OptionButton Option2 
         BackColor       =   &H80000018&
         Caption         =   "Option2"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   320
         Left            =   480
         TabIndex        =   11
         Top             =   1560
         Value           =   -1  'True
         Width           =   255
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackColor       =   &H80000018&
         Caption         =   "锥齿轮"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   285
         Left            =   840
         TabIndex        =   10
         Top             =   2520
         Width           =   855
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackColor       =   &H80000018&
         Caption         =   "斜齿轮"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   285
         Left            =   840
         TabIndex        =   9
         Top             =   1560
         Width           =   855
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackColor       =   &H80000018&
         Caption         =   "直齿轮"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   285
         Left            =   840
         TabIndex        =   8
         Top             =   600
         Width           =   855
      End
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H80000018&
      Caption         =   "  请选择所要设计的项目: "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   4935
      Left            =   4080
      TabIndex        =   4
      Top             =   1080
      Width           =   3015
      Begin VB.CommandButton ljt 
         BackColor       =   &H00FFC0C0&
         Cancel          =   -1  'True
         Caption         =   "零件图生成"
         Default         =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   720
         Style           =   1  'Graphical
         TabIndex        =   14
         Top             =   3720
         Width           =   1575
      End
      Begin VB.CommandButton jkxhs 
         BackColor       =   &H00FFC0C0&
         Caption         =   "渐开线函数"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   720
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   2640
         Width           =   1575
      End
   End
   Begin VB.Image Image2 
      Height          =   60
      Left            =   0
      Picture         =   "齿轮计算-Form1.frx":0000
      Top             =   480
      Width           =   9000
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      BackColor       =   &H80000018&
      Caption         =   "当前日期:"
      ForeColor       =   &H00404040&
      Height          =   240
      Left            =   600
      TabIndex        =   17
      Top             =   6840
      Width           =   1200
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H80000018&
      Caption         =   "当前时间:"
      ForeColor       =   &H00404040&
      Height          =   240
      Left            =   4080
      TabIndex        =   15
      Top             =   6840
      Width           =   1200
   End
   Begin VB.Line Line1 
      BorderWidth     =   2
      X1              =   0
      X2              =   7680
      Y1              =   6600
      Y2              =   6600
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H80000018&
      Caption         =   "***Welcome to the form for GEAR CAD !***"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   14.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   345
      Left            =   700
      TabIndex        =   0
      Top             =   120
      Width           =   5775
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Dim words, txtwords As String
Dim j, lenth As Integer

Private Sub bz_Click()
Form12.Show
End Sub

Private Sub Form_Load()
 On Error Resume Next
Timer1.Enabled = True

Form5.Hide
Text1.Enabled = False
Text2.Enabled = False
Text1.Text = Time
Text2.Text = Date


Timer2.Enabled = True
Label1.Caption = "***Welcome to the form for GEAR CAD !***"
words = Label1.Caption
Label1.Caption = ""






End Sub



Private Sub jhjs_Click(Index As Integer)

If Option1.Value = True Then
Form2.Show
End If

If Option2.Value = True Then
Form3.Show
End If

If Option3.Value = True Then
Form4.Show
End If

End Sub

Private Sub jkxhs_Click()
If Option1.Value = True Then
Form8.Show
End If

If Option2.Value = True Then
Form8.Show
End If

If Option3.Value = True Then
Form8.Show
End If
End Sub

Private Sub ljt_Click()

If Option1.Value = True Then
Form15.Show
End If

If Option2.Value = True Then
Form011.Show
End If

If Option3.Value = True Then
Form021.Show
End If

Me.Hide

End Sub


Private Sub Option1_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)
ljt.Enabled = True
End Sub

Private Sub Option2_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)
ljt.Enabled = True
End Sub

Private Sub Option3_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)
ljt.Enabled = True
End Sub

Private Sub StatusBar1_PanelClick(ByVal Panel As MSComctlLib.Panel)

End Sub



Private Sub tc_Click()
'Unload Me
'Form14.Show
End
End Sub



Private Sub Timer1_Timer()
Text1.Text = Time
End Sub

Private Sub Timer2_Timer()
 lenth = Len(words)
    txtwords = Left(words, j)
   Label1.Caption = txtwords
    j = j + 1
    If j > lenth Then
    j = 0
    End If
End Sub

Private Sub xhjs_Click(Index As Integer)
If Option1.Value = True Then
Form9.Show
End If

If Option2.Value = True Then
Form10.Show
End If

If Option3.Value = True Then
Form11.Show
End If

End Sub

⌨️ 快捷键说明

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