Re: How to prevent flickering when set focus on all controls.
- From: "Angel J. Hernández M." <angeljesus14@xxxxxxxxxxx>
- Date: Fri, 5 Aug 2005 12:05:28 -0400
Excellent!
Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"Vern" <Vern@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:83C51A09-17A7-4C99-88CB-8BC2FCA26ECB@xxxxxxxxxxxxxxxx
> 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" <Vern@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:1A3940A0-24D5-4448-8ED4-438604BFDD89@xxxxxxxxxxxxxxxx
>> >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
>>
>>
>>
.
- References:
- How to prevent flickering when set focus on all controls.
- From: Vern
- Re: How to prevent flickering when set focus on all controls.
- From: Angel J. Hernández M.
- Re: How to prevent flickering when set focus on all controls.
- From: Vern
- How to prevent flickering when set focus on all controls.
- Prev by Date: Re: Sending a large C# web service error
- Next by Date: Re: error: {System.Runtime.InteropServices.COMException} occured
- Previous by thread: Re: How to prevent flickering when set focus on all controls.
- Next by thread: Re: How to prevent flickering when set focus on all controls.
- Index(es):
Relevant Pages
|