Public Class Form1
Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LocationChanged
If Me.Left < Screen.PrimaryScreen.Bounds.Width / 2 Then
Me.Left = 0
Else
Me.Left = Screen.PrimaryScreen.Bounds.Width - Me.Width
End If
End Sub
End Class
Hi Drederick,
It's firmly glued to the left or right side of the screen! Nice. But not exactly what I was looking for. Maybe I should used the word auto hide, like vs2005 menu's (toolbox, properties etc.) itself, who foldup to the left or right if they don't have focus. If you mouse over, they fold out again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.