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

Dragging a Borderless Form

By , 12 Jun 2010

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)

About the Author

New biography coming sometime.
Green Alien | [Alien]


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