Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frame problem

Status
Not open for further replies.

algomes

Programmer
Aug 2, 2002
20
PT
I'm using vb6 and I'm hiding one frame behind another in a form turning them visible trough code.

frame1.visible=false
frame2.visible=true

The problem is that frame2 doesn't turn visible.Can someone help me on this?
 
I just tried :

Private Sub Command1_Click()
Frame2.Visible = False
Frame1.Visible = True

End Sub

Private Sub Command2_Click()
Frame1.Visible = False
Frame2.Visible = True

End Sub

and it works OK. Does this work for you? If not is there something else in your code?

I'm sure you checked that frame2 isn't inside frame1. You need to add the frames separately on different parts of the form then overlap them afterwards.
Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
algomes, I do not mean to insult you but are you sure you don't have frame2 inside of frame1? If you do and you set frame1.visible to false frame2.visible = true will not do anything. Just a thought. If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]

[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top