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 n);