usercontrol2.ctl

来自「用visual basic 开发的界面」· CTL 代码 · 共 43 行

CTL
43
字号
VERSION 5.00
Begin VB.UserControl UserControl1 
   ClientHeight    =   3600
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4800
   ScaleHeight     =   3600
   ScaleWidth      =   4800
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   3000
      Left            =   2640
      Top             =   480
   End
   Begin VB.CommandButton Command1 
      Caption         =   "调用Ansys命令流进行有限计算"
      Height          =   855
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   2055
   End
End
Attribute VB_Name = "UserControl1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x
x = Shell(s)
Timer1.Enabled = True
Unload 调用
End Sub

Private Sub Timer1_Timer()
If Dir("G:\yz.err") <> "" Then
   MsgBox ("计算完毕!")
   Timer1.Enabled = False
End If
End Sub

⌨️ 快捷键说明

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