Android Question How do I force a FocusChanged event


Licensed User
Longtime User

is there a way that I can force a _FocusChanged event for an EditView so that it is ensured that the code for the _FocusChanged sub is performed?

The way the view behaves right now is that I click the EditView so that it gets the Focus - that is good. But now, when I click a button, the EditView keeps the focus - that is bad.

Any idea?

Thanks a lot.

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
Hi, If I understood the question you can try put a second edittext (visible=true) outside of layout and use a code like this. That way when you touch on button the second edittext get the focus and the first edittext lose focus.
Sub Button1_Click
End Sub
Upvote 0