📄 工程信息.frm
字号:
VERSION 5.00
Begin VB.Form Form3
BorderStyle = 5 'Sizable ToolWindow
Caption = "工程信息"
ClientHeight = 1140
ClientLeft = 60
ClientTop = 285
ClientWidth = 3270
LinkTopic = "Form3"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1140
ScaleWidth = 3270
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
BackColor = &H80000000&
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 1200
TabIndex = 1
Text = "Text1"
Top = 120
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "确认"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2160
TabIndex = 0
Top = 600
Width = 855
End
Begin VB.Label Label1
Caption = "工程名称:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 2
Top = 180
Width = 1095
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
On Error Resume Next
Fname = Text1.Text + "."
MkDir ("C:\钢混框架设计\")
ChDir ("C:\钢混框架设计\")
MkDir ("C:\钢混框架设计\工程存档_" + Text1.Text + "\")
ChDir ("C:\钢混框架设计\工程存档_" + Text1.Text + "\")
Call MDIForm1.Menu1
Unload Me
kuangjia2.Show
kuangjia1.Show
End Sub
Private Sub Form_Load()
Dim N As Integer
Me.Height = 1500
Me.Width = 3500
Me.Left = MDIForm1.Width - Me.Width - 200
If Fname = "" Then
Text1.Text = "工程1"
Else
N = InStr(Fname, ".")
fname1 = Left$(Fname, N - 1)
Text1.Text = fname1
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -