Textbox not receiving the focus

E

Echo

Hi all. Maby someone can help me with a problem. I have a smart device
application that I have written. On one form(Form 1) is called first
and the contrucion of the form continues. Now before I show Form 1 I
call another form(Form 2) that checks that if the client needs to print
the incidents, Form 2 gets called and displayed where he/she can select
a printer. Now the problem is if the printer is selected Form 1 gets
shown and the client can start. On this form I have a
textbox(txtEmployee) that needs to get the focus on(without using the
tab order). I have been stepping through my code and I set the focus on
that textbox. But the focus doesn't go onto that textbox. I have tried
the gotFocus and noticed that the textbox doesn't receive the focus. It
goes onto Form 1. When Form 1 gts shown the focus is set by the command
txtEmployee.Focus(); line but the event gotFocus does not fire. But
when I do not call Form 2 up everything works fine and the textbox then
receive the focus.

Can anyone help me please.
Thanks in advance.
Echo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top