Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2010 Window on top using buttons and off

$
0
0
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.

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>