General discussion

  • Creator
    Topic
  • #2327915

    VB6 Frames

    Locked

    by sharman ·

    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.

All Comments

  • Author
    Replies
    • #3495174

      VB6 Frames

      by don christner ·

      In reply to VB6 Frames

      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

    • #2671131

      Reply To: VB6 Frames

      by steve ·

      In reply to VB6 Frames

      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.

Viewing 1 reply thread