Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Moving Borderless Window

Posted on 2010-09-24
3
706 Views
Last Modified: 2012-05-10
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
Comment
Question by:ktola
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 33754120
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
 

Author Closing Comment

by:ktola
ID: 33754295
That is awesome!  Thank you!
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 33754321
Not a problem, glad to help.  ;=)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question