By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,510 Members | 1,821 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,510 IT Pros & Developers. It's quick & easy.

Show/Hide Frames

P: 26
I'm making a program in vb6 where i have command buttons down the side which show/hide the 5 frames

i tried frame.visible, frame(index).visible, frame(index).visible = true

none work

any tips?
Sep 22 '07 #1
Share this Question
Share on Google+
2 Replies


hariharanmca
100+
P: 1,977
I'm making a program in vb6 where i have command buttons down the side which show/hide the 5 frames

i tried frame.visible, frame(index).visible, frame(index).visible = true

none work

any tips?
Expand|Select|Wrap|Line Numbers
  1. frame.visible, frame(index).visible, frame(index).visible = true
Here, is frame is a control name?
(if that is a control name then it should work
Or better post what you had tried.
Sep 22 '07 #2

QVeen72
Expert 100+
P: 1,445
Hi,

If all the Frames are in a Control array, then u have to loop thru all of them and hide/show them. else u have to hide/show individually :

if control array :

Expand|Select|Wrap|Line Numbers
  1. Dim i As Integer
  2. For i=0 to 4
  3.     Frame1(i).Visible = False
  4. Next
  5.  
Or :

Expand|Select|Wrap|Line Numbers
  1. Frame1.Visible = False
  2. Frame2.Visible = False
  3. Frame3.Visible = False
  4. Frame4.Visible = False
  5. Frame5.Visible = False
  6.  
Regards
Veena
Sep 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.