try this using API - don't know if there is a .Net way for this:
[DllImport("User32.dll", EntryPoint="SendMessageA")]
static extern Int32 SendMessage (IntPtr hWnd, Int32 wMsg, Int32 wParam, int
lParam);
[DllImport("User32.dll")]
static extern Int32 ReleaseCapture ();
private const int HTCAPTION = 2;
private const int WM_NCLBUTTONDOWN = 161;
private void Form1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
ReleaseCapture();
SendMessage ( this.Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0 );
}
"Tomomichi Amano" <to*********@hotmail.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
(addition to my last question)
I want to make it possible to move a window with out a titlebar USEING a
mouse.
Thanks in advcance