Link to home
Start Free TrialLog in
Avatar of ktola
ktola

asked on

Moving Borderless Window

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?
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ktola
ktola

ASKER

That is awesome!  Thank you!
Not a problem, glad to help.  ;=)