Results 1 to 3 of 3

Thread: Need a better ZOrder

  1. #1
    JBVB123
    Guest
    If you have 3 Image controls (or any other control for that matter) on a form and they are positioned one on top of the other (but lightly askew so that you can see a bit of each), how do you make the top most control become the middle one in the stack without fiddling with the ZOrder of the others? The VB6 ZOrder property only allows you to either make a control the top most or the bottom most, but not somewhere in between. Somehow VB keeps track of their order when they are created, so how can I modify it at runtime?

    So, if I had 10 Image controls, I would like to be able to set their order in the display stack individualy as I see fit, at runtime.

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Try using SetWindowPos APi call

  3. #3
    JBVB123
    Guest

    Tried that

    Thank you for your reply. I did try SetWindowPos and all it did was removed the Image control I was applying it to, from the screen.

    If you have verified that this API is the answer I have been looking for, maybe you can send me a sample of how you applied it.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width