Groups | Blog | Home
all groups > asp.net building controls > january 2004 >

asp.net building controls : Autotab control


rbscheer NO[at]SPAM my-deja.com
1/20/2004 1:23:05 PM
Hi.

I wrote a component derived from the textbox control that has an
Autotab feature the component works well on both Netscape and IE. My
only problem is that sometimes, on IE, I receive the error:
"Can't move focus to the control because it is invisible, not enabled,
or of a type that does not accept focus."

Netscape simply ignores the script if a focus can't be set. Is it
possible to trap or control this error someway in IE? I would like to
avoid my users to see the default error message.

Thanks,
Jiho Han
1/20/2004 4:56:09 PM
would

try
{
focus();
}
catch (e)
{}

work?

[quoted text, click to view]

AddThis Social Bookmark Button