Keep right windows form
keep windows from take over right side of screen like facebook messenger, how do i make that so that my app stays on that side of the screen and puts all the other windows on the right side of the screen.
I need the code for VB.NET code
Something like this should align the form to the right hand side of the screen. It won't stop the form being repositioned by the user though
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load RightAlignForm(Me) End Sub Private Sub RightAlignForm(ByRef frm As Form) Dim currentArea = Screen.FromControl(frm).WorkingArea frm.Left = currentArea.Left + currentArea.Width - frm.Width End Sub