>I have a textbox in a grid and in the lost focus event I have a condition that if not true I don't want to move off the textbox. I not sure exactly what code I need to put in there. What I do have seems to work fine when I am within the grid but when I select another page on the pageframe it doesn't work. I believe the code I have is this.setfocus(). Any help is appreciated.
I haven't actually tried this but why don't you put the code in the valid event of the textbox? then if you return .F. from it, it will not loose focus.
HTH
Will Jones