GotFocuse

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

Guest

Hi
I have some textboxs in from such as textbox1, textbox2... and one button. So I want to know when I click button, the forcuse be turn into the textbox1. Someone can help me?
 
try this
if textbox1.focused then
textbox2.focus
end if

hope it helps

eric

QuocTuan said:
Hi,
I have some textboxs in from such as textbox1, textbox2... and one button.
So I want to know when I click button, the forcuse be turn into the
textbox1. Someone can help me?
 
Hello,

private sub button1_click()
text1.setfocus
end sub

Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 
Back
Top