textbox focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In a windows application, in the form, I have a text box and I use
Me.MyText.Focus(), this does not get focus to the text box, what shoudl I do?
Thanks,
 
JIM.H. said:
In a windows application, in the form, I have a text
box and I use Me.MyText.Focus(), this does not get
focus to the text box, what shoudl I do?

Where do you place this code?

Are you sure the textbox is visible and enabled?
 
I am in the Class Form1 and enable it before set the focus when my function
is called (I am sure the code is processed)
 
JIM.H. said:
I am in the Class Form1 and enable it before set the focus when my
function
is called (I am sure the code is processed)

So, the form is visible too?
 
yes. this text box is disabled by default. when my function is called I
enabled it and set focus. When I click with my mouse I am able to type into
this text box. I see the textbox and other items in the form. There is
another text box in my form and I print status message on it, I do not need
to set focus on that.
 
Back
Top