That worked, thanks!
Here's the C# Code I used for this.
using System.Runtime.InteropServices;
public class MyCaret
{
[DllImport("user32.dll")]
public static extern int ShowCaret(IntPtr hwnd);
[DllImport("user32.dll")]
public static extern int HideCaret(IntPtr hwnd);
}
Then in my actual method that needed to hide the caret, I used:
MyCaret.HideCaret(CurrentForm.Handle);
MyCaret.ShowCaret(CurrentForm.Handle);
"Angel J. Hernández M." wrote:
You should try using the HideCaret and ShowCaret function (API)
Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"Vern" <Ve**@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...I have a routine that sets focus to all the controls on the form so it can
run the validate event for each of them.
Is there a way to prevent the user from seeing the cursor go through all
the
fields?
Thanks,
Vern