>>>I'm removing and re-adding some controls to a user control. I want to prevent the 'blinking' affect. Is there something like VFP's LockScreen in C#?
>>>
>>>Thanks
>>
>>I just searched here -
Re: C# equivalent of Vfp's LockScreen Thread #
1231438 Message #
1231443>
>I'v already Googled it and found that Suspend/Resume don't work as advertised. I saw one post that suggested:
>
>
> [DllImport("user32.dll")]
> public static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam);
> private const int WM_SETREDRAW = 11;
>
>
>but this is foreign to me. I'm not even sure what this does or where to put it.
The code looks like C++ code, but I'm afraid I can not help here - haven't tried to do what you're doing.
If it's not broken, fix it until it is.
My Blog