Hi everyone
I am developing an AciveX control with many text boxes and check boxes. When user hit ENTER, focus should move to the next box in the ActiveX control. I don't know how to do this.
Please help me.
Printable View
Hi everyone
I am developing an AciveX control with many text boxes and check boxes. When user hit ENTER, focus should move to the next box in the ActiveX control. I don't know how to do this.
Please help me.
I think this is what you want:
VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyReturn Then Text2.SetFocus End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyReturn Then Text3.SetFocus End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyReturn Then Text4.SetFocus End Sub
etc, etc.
Thanks Rick Bull
I am using something like this.
My OCX will work in COBOL program. Another programmer needs to test this. I don't know now, will COBOL treat OCX as one control or will it allow to go thru all boxes on my OCX.
Thanks again.
Sorry I haven't got a clue. I thought COBOL was command line stuff only :o :D