Results 1 to 3 of 3

Thread: [RESOLVED] Loading order

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    221

    Resolved [RESOLVED] Loading order

    I have a code to load objects that goes like:

    VB Code:
    1. Load [itemname](maxindex) 'maxindex is my integer that goes up by 1 everytime i load an object
    2. With [itemname]
    3. .caption = "the caption"
    4. End with

    I wanted to know how i would change it so it would appear either at the front or at the back of the form (like if an object was overlapping and it was at the back of the form, the object overlapping it would go infront whereas if it was at the front of the form, it would overlap that object).

  2. #2
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: Loading order

    Try the ZOrder property.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  3. #3
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Loading order

    This should do it:

    VB Code:
    1. ItemName.ZOrder = vbSendtoBack
    2. ItemName.ZOrder = vbBringtoFront
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


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