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
Everything works fine, but wanted to know if I have 2 buttons can I place the 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.
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?
Re: Window on top using buttons and off