tengo problemas con el sendkeys... tengo el siguiente evento keypress, es
decir, cuando presione enter en este objeto (tCuit) deseo que pase al
siguiente objeto segun su tabindex... en vb6 me funcionaba, aunque la verdad
era mas simple:
If KeyAscii = vbkeyreturn Then SendKeys "{tab}"'esto era en vb6
Esto l oque no me funciona en .NET
Private Sub tCuit_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles tCuit.KeyPress
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
SendKeys.SendWait("{ENTER}")
End If
End Sub
Hugo A. Gsell
Sgo del Estero
Argentina
Leer las respuestas