In my current project I had to implement move for a Form, which doesn’t have a title bar or FormBorderStyle property set to None. Instead of title bar I was using a Panel with background Image. Here is the code snippet.
As it is WIN32 API call, you need to import System.Runtime.InteropServices namespace.
Did you like this article? Share it with your friends