How to remove borders in a sizeable form?

577 Views Asked by At

I'm trying to remove the borders, from a sizeable form. I've tried FormBorderStyle = None but it's not what I'm searching for, since it removes the Aero snap support, Aero shake support, etc...

What I have in the moment, is the WinForm without the ControlBox/Titlebar with a Panel, so the user can move the application while clicking the panel. Application ATM (I want to be able to do this, without the WinForm borders).

Is there anyway to make the form "borderless", without ruining the Aero Snap Support?

1

There are 1 best solutions below

6
TerribleDog On

Try this one. But after doing this, you have to create functions for dragging, minimizing and closing the form.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.ControlBox = False
    Me.Text = ""
End Sub