Results 1 to 3 of 3

Thread: Window on top using buttons and off

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Resolved Window on top using buttons and off

    So i'd like to have my form on top of everything else, so I am using this in the form load

    Code:
    Me.TopMost = True
    Everything works fine, but wanted to know if I have 2 buttons can I place the
    Code:
    Me.TopMost = True
    into the button to read

    Code:
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Me.TopMost = True
        End Sub
    and if so what do I place in button 2 so I can switch it off, just want to know if this is possible?

    Thank you.
    Last edited by jokerfool; Mar 3rd, 2013 at 11:58 AM.

  2. #2
    Addicted Member MetalInquisitor's Avatar
    Join Date
    Sep 2012
    Posts
    143

    Re: Window on top using buttons and off

    If you can set something to True, shouldn't you also be able to set it to False?

  3. #3

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Re: Window on top using buttons and off

    Silly me. Cheers.

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