-
Hi everybody...I hope this is a easy one.
Basically I want a particular control (textbox) to gain focus when a commanfd button is clicked as follows:
txtDemo(3).Enabled = True
txtDemo(3).SetFocus
SendKeys "{Home}+{End}"
It doesn't work!! The text box does not have the focus..help
Gerard
-
<?>
Works fine for me.
It has focus and seltext is len(textbox)
Any messages or anything?
-
Yeah it should work but it never does for me..I'm not sure if there is some other environmental settting that is causing me grief!!
-
Yeah, that occurs to me either!
I had to do:
txtSearch.TabIndex = 0
in Form_Load.
That's not going to work with a command button.