Discussion Locked

VB6 Frames

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm creating an application in VB6 which requires the use of multiple frames(instead of forms). I'm having trouble rotating the frames. what i want is that when the user clicks on a command button the correct frame will be moved to the specified location and the previously visible frame should be moved away. Any help.

2 replies

by don christner

You should be able to do that by using the frame properties, Left, Top, Height, Width and Visible. Use the Enabled property if you want the frame to be visible but not useable.

Don

by steve

Or try this:
Frame1.Move 50, 50, 2000, 1500
Frame1.ZOrder vbBringToFront
Then on the next frame to be displayed
Frame2.Move 50, 50, 2000, 1500
Frame2.ZOrder vbBringToFront
Of course you will have to write code to keep track of which frame is visible and which frame should be next.
As Pocket PC has no real tab control there is a good article on http://www.devbuz.com (in the archives) that demonstrates what you want to do.

This discussion is closed to new replies.