Forum > LCL

TEDIT

(1/1)

ecitoyen:
Is it possible to set focus to a Edit1.Text Tedit field...
For Exemple after validate the First Name of an user,
i want to get his last Name in a Edit2.Text field...
may i use something like that:
 Edit2.Setfocus...

Thanks a lot!!!
 :D

fabienwang:
Well Edit2.SetFocus() will work, but not on FormCreate event
if you do it on another event it should work

ecitoyen:
 O:-) O:-) O:-)
I try it and it go very well for my purpose!!
Lazarus... you are great!!!

Navigation

[0] Message Index

Go to full version