Hi,
I have wrote unit converter application. For starting calculate with value typed in textbox I use button control. But I want my program will calculate value immediately as I type it to textbox. Problem is, that KeyPress event at first does action programmed in KeyPress sub, and after it writes value I typed on SIP to textbox.
For example:
I try to handling it with Asc(key) etc., but it is more difficult than calculating of convert himself . I know other ways how to do it, but I want use TextBox and SIP (not own writed keyboard).
I have wrote unit converter application. For starting calculate with value typed in textbox I use button control. But I want my program will calculate value immediately as I type it to textbox. Problem is, that KeyPress event at first does action programmed in KeyPress sub, and after it writes value I typed on SIP to textbox.
For example:
B4X:
Sub TextBox1_KeyPress (key)
TextBox2.Text=TextBox1.Text
End Sub
I try to handling it with Asc(key) etc., but it is more difficult than calculating of convert himself . I know other ways how to do it, but I want use TextBox and SIP (not own writed keyboard).