Hi, i'm created three frames "frame1", "frame2" and "frame3", and that put top together, for sampel "frame2" is top of "frame1" and "frame3" is top of "frame2".
i also created listview, and has three catagoreis "name1", "name2", "name3",
if i want to click nameone it will show "frame1", if i want to click name2 it will show "frame2" and hide rest of frames, and if I want to click name3, it will show 'frame3" and hide rest of frames.
but the problem is that every time i click name2 or name3 is not showing frame but works frame1, and i wrote code plesae take look. Any idea why!
If ListView1.SelectedItem.Text = "General" Then
Frame1.Visible = True
Frame2.Visible = False
frame3.visible = false
Else If ListView1.SelectedItem.Text = "Security" Then
Frame1.Visible = False
Frame2.Visible = True
frame3.visible = False
that have same problme again, One frame (General) overlay the other frame (Security), thired frame overlay the other frame (backup), so when user selected options (general) is works fine then i click "options" for security is not working, and if i click backup is works fine with frame.
thanks for file, still not working one of mine, i enclosed my file and you see what the problme i have. I really appreication if anyone can help me what did i missed. and send file back so i can learn my mistake thanks.
thanks for reply, If you fixed that file, i apprication if you can send me back so i can learn myself becuase i still not sure where to put if not suppose to put inside of frame. thanks.
Last edited by Alidad; Mar 28th, 2006 at 08:47 PM.
when you were drawing (or pasting) your frames you accidently drew some of them inside others. That means if the parent frame was not visible then neither was the frame within it, hence it not being shown when you set it's visible state to True.
Just make sure that you're always pasting controls into container you want them to be in. Frames & pictureboxes can be containers for controls as well as the form itself.
A Frame, as you probably know, is a container object. So one Frame can contain other controls... This is the problem you have... Your Frame is contained in another Frame instead of being contained directly on the Form.
So that is why you should cut and paste the frame, so it is contained on the Form instead of inside the other Frame. I hope this makes sense to you.
oh ok great thanks. last things is that if I want to put button or text filed to one of the frame, why is showing to all of frame! how can i do that to show one of frame rather then all frames!
I don't really understand. What do you mean by "why is it showing to all of frame"? If i put a control on one of the frames then it's only visible when that frame is visible