T
The Mad Ape
I have code in the GotFocus event that will display the virtual
keyboard when the focused object is a textbox. Not a problem, works
like a charm.
However if the next box is obscured by the keyboard I can not get the
autoscroll to work.
Here is the code to scroll to the textbox:
Private Sub txt1_LostFocus (ByVal sender As Objectm ByVal e As
System.EventArgs) Handles txt1.LostFocus
'This section just closes the Keyboard upon losing focus to this text
box. It works fine
If not InputPanel1 is Nothing Then
If InputPanel1.Enabled = True Then
InputPanel1.Enabled = False
End If
End If
'This does not work
If txt2.Visible = True Then
txt2.Focus()
txt2.ScrollToCaret()
End If
Also For your info I have this code in the GotFocus for txt2
If not InputPanel1 is Nothing Then
If InputPanel1.Enabled = False Then
InputPanel1.Enabled = True
End If
End If
Any ideas? There are other objects above these textboxes so by the
time the use gets to them, they have to enter data, scroll down to the
next one and enter data. It does set the focus on txt2 but it does not
scroll to it.
How can I fix this?
Thanks
TMA
keyboard when the focused object is a textbox. Not a problem, works
like a charm.
However if the next box is obscured by the keyboard I can not get the
autoscroll to work.
Here is the code to scroll to the textbox:
Private Sub txt1_LostFocus (ByVal sender As Objectm ByVal e As
System.EventArgs) Handles txt1.LostFocus
'This section just closes the Keyboard upon losing focus to this text
box. It works fine
If not InputPanel1 is Nothing Then
If InputPanel1.Enabled = True Then
InputPanel1.Enabled = False
End If
End If
'This does not work
If txt2.Visible = True Then
txt2.Focus()
txt2.ScrollToCaret()
End If
Also For your info I have this code in the GotFocus for txt2
If not InputPanel1 is Nothing Then
If InputPanel1.Enabled = False Then
InputPanel1.Enabled = True
End If
End If
Any ideas? There are other objects above these textboxes so by the
time the use gets to them, they have to enter data, scroll down to the
next one and enter data. It does set the focus on txt2 but it does not
scroll to it.
How can I fix this?
Thanks
TMA