Click here to Skip to main content
11,806,339 members (69,480 online)
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
Alternatives (2)

Tagged as

Dragging a Borderless Form

, 12 Jun 2010 CPOL 16.9K 6
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
Web04 | 2.8.151002.1 | Last Updated 12 Jun 2010
Article Copyright 2010 by Kristian Sixhoej
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid