# LostFocus

**URL:** <https://forum.xojo.com/t/lostfocus/11779>\
**Category:** Web\
**Created:** [October 20, 2013, 7:28pm UTC](https://forum.xojo.com/t/lostfocus/11779 "2013-10-20T19:28:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis\_Colon\_Lugo](https://forum.xojo.com/user_avatar/forum.xojo.com/alexis_colon_lugo/32/572_2.png) [@Alexis\_Colon\_Lugo](https://forum.xojo.com/u/Alexis_Colon_Lugo)\
**Post date:** [October 20, 2013, 7:28pm UTC](https://forum.xojo.com/t/lostfocus/11779/1 "2013-10-20T19:28:24Z")

</div>

Hello  
In any way to know when you are in a textbox or other control i aces double click to to show WebDialog how i now what the textbox or control name that was double click

---

<div class="post-metadata">

**Author:** ![Louis\_D](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/cab0a1/32.png) [@Louis\_D](https://forum.xojo.com/u/Louis_D)\
**Post date:** [October 21, 2013, 12:09am UTC](https://forum.xojo.com/t/lostfocus/11779/2 "2013-10-21T00:09:25Z")

</div>

In your webdialog, create a property, for example “CallerControl”, or whatever makes sense for you. In the double-click event, where you call the webdialog, set the value of YourWebdialog.CallerControl to the name of the calling control, or some other value that will be specific to that control. When the webdialog is dismissed, you can use the value in the property to branch your handler function to update the appropriate control. This is one manner that you can use the same webdialog to update more than one field. I use this technique to capture the date from a single date picker webdialog with several date fields on the same page.

---

<div class="post-metadata">

**Author:** ![Alexis\_Colon\_Lugo](https://forum.xojo.com/user_avatar/forum.xojo.com/alexis_colon_lugo/32/572_2.png) [@Alexis\_Colon\_Lugo](https://forum.xojo.com/u/Alexis_Colon_Lugo)\
**Post date:** [October 21, 2013, 1:07pm UTC](https://forum.xojo.com/t/lostfocus/11779/3 "2013-10-21T13:07:21Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:54pm UTC](https://forum.xojo.com/t/lostfocus/11779/4 "2020-10-29T16:54:20Z")

</div>


