Thank you! :)
>I am doing something with an Win API
>//lock the controls on a Winform
>Utilities.DllImportsHelper.LockWindowUpdate(this.Handle.ToInt32());
>///code goes here
>//unlock the controls
>Utilities.DllImportsHelper.LockWindowUpdate(0);
>
>
>//Utilities class
>using System.Runtime.InteropServices;
>
>[DllImport("user32.dll")]
>public static extern int LockWindowUpdate(int hwndLock);
>
>Hope it helps
Grigore Dolghin
Class Software.