How to get previous focused control?
-
Hi, I wannt to know how can I get previous focused control. My problem is when I click on panel then focus in textbox is lost. I have 5 textboxes and wannt set focus back to proper textbox. I also tried OnLeave of textbox to discover which control will get focus, but I have problem too. Any suggestion? Thank in advance, Jure
-
Hi, I wannt to know how can I get previous focused control. My problem is when I click on panel then focus in textbox is lost. I have 5 textboxes and wannt set focus back to proper textbox. I also tried OnLeave of textbox to discover which control will get focus, but I have problem too. Any suggestion? Thank in advance, Jure
panel is only a container not any control to interact with. Every ctrl has its index property.So make panel index prty after textbox property. Store previous control Id to some global variable in textbox lost focus event.After you had complete ur work on clicking on panel,just use this Id and use focus() to assign focus on that control.
Regards Chintan www.visharadsoft.com (I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)