Click here to Skip to main content
12,817,956 members (38,268 online)
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
Alternatives (2)
Add your own
alternative version

Tagged as


6 bookmarked
Posted 31 May 2010

Dragging a Borderless Form

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


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...


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


About the Author

Kristian Sixhoej
Denmark Denmark

New biography coming sometime.
Green Alien | [Alien]

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