VB窗体显示问题
不必,可以用FRAME控件,当然用MDI更好 有必要吗?在FRAME中添加按钮就行了: 保存为frm1。frm: VERSION 5。00 Begin VB。Form Form1 Caption = "Form1" ClientHeight = 2970 ClientLeft = 60 ClientTop = 450 ClientWidth = 4005 LinkTopic = "Form1" ScaleHeight = 2970 Scale...全部
不必,可以用FRAME控件,当然用MDI更好 有必要吗?在FRAME中添加按钮就行了: 保存为frm1。frm: VERSION 5。00 Begin VB。Form Form1 Caption = "Form1" ClientHeight = 2970 ClientLeft = 60 ClientTop = 450 ClientWidth = 4005 LinkTopic = "Form1" ScaleHeight = 2970 ScaleWidth = 4005 StartUpPosition = 3 '窗口缺省 Begin VB。
CommandButton Command2 Caption = "Command2" Height = 495 Left = 1440 TabIndex = 2 Top = 2400 Width = 1215 End Begin VB。
Frame Frame1 Caption = "这是一个实例" Height = 2175 Left = 120 TabIndex = 0 Top = 120 Width = 3615 Begin VB。
CommandButton Command1 Caption = "×" Height = 180 Left = 3360 TabIndex = 1 Top = 120 Width = 255 End End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Frame1。
Visible = False End Sub Private Sub Command2_Click() Frame1。Visible = True End Sub。收起