Moving Borderless Window
Posted on 2010-09-24
Due to the UI constraints placed on me by the design team, I am forced to create a main window for a desktop application without any borders (i.e. FormBorderStyle = None). This obviously means that the Window cannot move around the screen by default and thus is stuck in the center.
I have seen other applications wherein trying to drag such a window turns the border into, say, Fixed Single Line, so the window can be moved and then those applications revert to no borders when the window stops moving.
The Drag* events at the Form level are for controls being added to the form so those will not work, I had thought perhaps the Move event would work but it does not fire as the Window never moves...
Does anybody know how to make this work?