Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting back the focus

Status
Not open for further replies.

jerold

Programmer
Joined
Aug 30, 2000
Messages
52
Location
PH
I have grid1 with column1, column2..etc

In column1>text1>lostfocus, it has a checking code
for the input.

After selecting other objects in the form,
how can I return the focus to that column1 or text1.

Please help me

Thank you.

 
Grid1.Column1.SetFocus


Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
I tried this code on lostfocus of
grid1>column1>text1

thisform.grid1.column1.setfocus()

but it does not return to column1
 
In my lostfocus, I have validation code.
When it loses its focus it must return
to that cell.

Thanks
 
Try NODEFAULT command in LostFocus event. This prevents to lose focus at all.

Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Thanks Vlad.
Its working now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top