using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace CallBuilder
...{
public partial class Iformest : Form
...{
[DllImport("User32.dll", EntryPoint = "SendMessage")]
private static extern int SendMessage(int hWnd, int Msg, int wParam, int lParam);
[DllImport("User32.dll", EntryPoint = "ReleaseCapture")]
private static extern int ReleaseCapture(); 


public Iformest(Form newform)
...{
InitializeComponent();


this.myForm.MyFormMouseDown += new MouseEventHandler(myForm_MyFormMouseDow



}
void myForm_MyFormMouseDown(object sender, MouseEventArgs e)
...{

if (e.Button == MouseButtons.Left)
...{
ReleaseCapture();
SendMessage(this.Handle.ToInt32(), 0x0112, 0xF012, 0);
} 
}