Re: How to prevent flickering when set focus on all controls.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
>>
>>
>>


.



Relevant Pages

  • Re: Group Policies fails on one computer
    ... I can access the SysVol shared folder from the computer that is ... operation at the same time when appling the policies. ... Regards, ... > Hi Angel, ...
    (microsoft.public.win2000.group_policy)
  • Re: Changing color of hyperlink when mouse over it
    ... Angel J. Hernández M. MCP - MCAD - MCSD - MCDBA ... > I'm pretty new at this so where do I add the script? ... >> Regards, ... >>> When I move my mouse over a hyperlink component, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: System.MissingMethodException - please help, method isnt miss
    ... Best regards, ... tperri wrote: ... getting the same error in the Emulator. ... public static extern int DllRegisterServer(); public static extern void DllUnregisterServer; public static extern IntPtr LoadLibrary; ...
    (microsoft.public.pocketpc.developer)
  • Re: How to prevent flickering when set focus on all controls.
    ... Regards, ... Angel J. Hernández M. ... >I have a routine that sets focus to all the controls on the form so it can ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: interacting with xml
    ... > Thank you Angel ... >> Select the node by using a XPath query ... >> Regards, ...
    (microsoft.public.dotnet.languages.csharp)