Hi,
Found this code to move a borderless form, but gives me an error:


VB Code:
  1. using Microsoft.Win32;
  2.  
  3. private const int WM_NCLBUTTONDOWN = 0xA1;
  4. private const int HTCAPTION = 0x2;
  5.  
  6. [DllImport("user32.dll")]
  7. public static extern bool ReleaseCapture();
  8.  
  9. [ DllImport( "user32.dll" ) ]
  10. public static extern int SendMessage( IntPtr hWnd, int Msg, int wParam, int lParam );
  11.  
  12. private System.Windows.Forms.Button cmdExit;
  13. private System.ComponentModel.Container components = null;
  14.  
  15.  
  16. private void Form1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
  17. {
  18. if ( e.Button == MouseButtons.Left )
  19. {
  20. ReleaseCapture();
  21. SendMessage( Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0 );
  22. }
  23. }

The error says:
"The type or namespace DLLImport could not be found..."