![]() |
Making Frames Visible (or not)
I am working on an application and thought that it would be easy to create a
number of forms on a dialog box with a menu on the top of the dialog box. Depending on which button was clicked on, a frame would be made ".visible" and all the other frames would be set to ".visible=false". Once I make the first frame visible, I don't seem to be able to get that frame to become invisible and another frame visible. Is there something obvious I'm missing? |
Making Frames Visible (or not)
This simple code works
Private Sub CommandButton1_Click() With Me .Frame1.Visible = True .Frame2.Visible = False .Frame3.Visible = False .Frame4.Visible = False End With End Sub Private Sub CommandButton2_Click() With Me .Frame1.Visible = False .Frame2.Visible = True .Frame3.Visible = False .Frame4.Visible = False End With End Sub -- __________________________________ HTH Bob "dunnerca" wrote in message ... I am working on an application and thought that it would be easy to create a number of forms on a dialog box with a menu on the top of the dialog box. Depending on which button was clicked on, a frame would be made ".visible" and all the other frames would be set to ".visible=false". Once I make the first frame visible, I don't seem to be able to get that frame to become invisible and another frame visible. Is there something obvious I'm missing? |
All times are GMT +1. The time now is 10:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com