Click here to Skip to main content
15,122,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem with set focus of a textbox:
if I do textboxname.setfocus on a method (after load) on that textbox I have got this error RunTime Error 5.
some considerations:
1)this method is after form_load
2)the textbox is visible and enabled.

thank you in advance

What I have tried:

I have tried to call a setfocus on another text and it works.
I have searched on google!!!!
Updated 29-Aug-16 22:28pm

gregorio89 29-Aug-16 5:14am
what kind of help it is? If I ask a question here, it means that I've already seen on google but it wasn't helpful
Richard MacCutchan 29-Aug-16 5:39am
Well there is no mention in your question that you have searched Google. And there is really not enough information to even guess what might be happening in your code. I suggest you find out exactly which line of code causes the error, and show us all the details.
gregorio89 29-Aug-16 5:59am
you goddamn right!!
i have updated the question
problem solved automatically!
with restart of this day, the problem disappeared.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900