Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • Last Modified:

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?
0
ktola
Asked:
ktola
  • 2
1 Solution
 
Fernando SotoCommented:
Hi ktola;

See this Microsoft artical for the needed steps.

How to move a form by dragging the client area of the form
http://support.microsoft.com/?id=320687

Fernando
0
 
ktolaAuthor Commented:
That is awesome!  Thank you!
0
 
Fernando SotoCommented:
Not a problem, glad to help.  ;=)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now