New Move Borderless form Code
Posted: Sat Mar 20, 2010 8:28 pm
Hi all
Ok i know we have 2 or 3 examples on here for moving borderless forms, well here is another example that you all can you use in your apps if you wish.
Put this after your Public Class Form1 ( or whatever your Form is called )
enjoy cooll;
Chris
Ok i know we have 2 or 3 examples on here for moving borderless forms, well here is another example that you all can you use in your apps if you wish.
Put this after your Public Class Form1 ( or whatever your Form is called )
Code: Select all
Form Mouse Down Code
Private mouseOffset As Point
Code: Select all
Form Mouse Move Code
mouseOffset = New Point(-e.X, -e.Y)
Code: Select all
and that's itIf e.Button = Windows.Forms.MouseButtons.Left Then
Dim mousePos As Point = Control.MousePosition
mousePos.Offset(mouseOffset.X, mouseOffset.Y)
Location = mousePos
End If
enjoy cooll;
Chris