Solved

Moving Borderless Window

Posted on 2010-09-24
3
701 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 62

Accepted Solution

by:
Fernando Soto earned 500 total points
Comment Utility
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
Comment Utility
That is awesome!  Thank you!
0
 
LVL 62

Expert Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now