2014년 12월 28일 일요일

how to set button to give focus to a specific textbox

Is there a way to give focus to a specific textbox in clicking a button ?



It's a little difficult with only one box but here's a project I did as a test that sets focus...

Focus.aia



Enis provided a clever work around for the problem that the TextBoxes do not have a set TextBox.Focus to true block.  Since there are no blocks to set a TextBox's property to Focused, hiding the textbox and then making it visible tricks the app into setting the focus to the correct text box.

NIce work around Enis!


댓글 없음:

댓글 쓰기