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
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

Need Your Help

async method within non-async loop

c# asynchronous win-universal-app

I am using a loop to place images in my canvas, there is a method that needs to check if each looped images have an attribute that is stored in a JSON file.

How can I transfer a database test fixture to device from my unit test application

android unit-testing file copy assets

I'm writing an Android JUnit test and want to copy/reset a test fixture file (it's an SQLite database file.) If I were within the main application, I know I could just place the file in the assets