Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
 
Alternatives (2)

Tagged as

Dragging a Borderless Form

, 12 Jun 2010 CPOL
A code snippet which makes a borderless form draggable.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

13 Jul 2010
Dima Popov
A slightly different solution.using System.Runtime.InteropServices;private const int WM_NCLBUTTONDOWN = 0xA1;private const int HTCAPTION = 0x2;[DllImport("User32.dll")]private static extern bool ReleaseCapture();[DllImport("User32.dll")]private static extern int...
12 Jun 2010
Anshul R
The original snippet I made is in VB.NETProtected Overrides Sub WndProc(ByRef e As Message) MyBase.WndProc(e) If e.Msg = &H84 AndAlso e.Result = &H1 Then e.Result = &H2 End SubI used Reflector to translate it to C#protected override void WndProc(ref Message...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Kristian Sixhoej
Student
Denmark Denmark

New biography coming sometime.
Green Alien | [Alien]


| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150302.1 | Last Updated 12 Jun 2010
Article Copyright 2010 by Kristian Sixhoej
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid