Results 1 to 5 of 5

Thread: Z Order

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Z Order

    How can I keep a form at the top of the z order?
    I don't live here any more.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    I believe there is a TopMost property for that.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: Z Order

    Originally posted by wossname
    How can I keep a form at the top of the z order?
    Not quite sure what you mean. Objects, including forms, have a "BringToFront" method which can be called whenever the form is accessible.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  4. #4

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Jesus, it's hard enough learning VB.net as it is without the buggers thinking of new names for everything!

    Thanks dude.

    newbie
    I don't live here any more.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Looks like Topmost keeps the form at the front without removing focus from the previous form. Being a property, it's effect is permament until the property is changed. It works even when ShowDialog() was used to reveal the previous form. If you inadvertently set the property of more than one form.Topmost to true, then the one which is in focus remains on top.

    BringTo Front is the same as setting focus on the form. Neither will work if the previous form was revealed with ShowDialog().
    Last edited by taxes; Jun 11th, 2004 at 06:58 AM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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