控件怎样随窗体变化大小?
程序代码:
Private Sub Form_Load() Me.Width = 9375 End Sub Private Sub Form_Resize() '这样写flash控件倒是可以随窗体放大了,但是不能隐藏列表,怎么解决? On Error Resume Next StatusBar1.Move StatusBar1.Left, Me.ScaleHeight - StatusBar1.Height - 50, Me.ScaleWidth - 200 TreeView1.Move Me.ScaleWidth - TreeView1.Width - 80, TreeView1.Top, TreeView1.Width, Me.ScaleHeight - StatusBar1.Height - 200 Flash.Move Flash.Left, Flash.Top, TreeView1.Left - 200, StatusBar1.Top - 100 End Sub Private Sub Picture1_Click() '显示和隐藏列表 If Me.Width = 9375 Then Me.Width = 6435 Picture1.Picture = Pic2.Picture ElseIf Me.Width = 6435 Then Me.Width = 9375 Picture1.Picture = Pic1.Picture End If End Sub