Always On Top

Lanc1988

Contributor
Joined
Nov 27, 2003
Messages
508
I tried searching the forums for Always on Top but it didn't find anything, so...

I have my main form, and then i have another form. On the other form I want there to be a checkbox and if its checked, then the form will always be on top.. what code would I use for this?
 
Would something like
Visual Basic:
    Private Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
        Me.TopMost = CheckBox1.Checked
    End Sub
not do it?
 
Back
Top