Visual Basic Foro

Programación => Visual Basic 6 => Mensaje iniciado por: bebekbdg en Abril 17, 2011, 05:32:18 pm

Título: ucListView KeyPress
Publicado por: bebekbdg en Abril 17, 2011, 05:32:18 pm
i use UcListView  http://www.leandroascierto.com.ar/categoria/Proyectos/articulo/Proyecto_2.php (http://www.leandroascierto.com.ar/categoria/Proyectos/articulo/Proyecto_2.php) . How do I use for the event keypress to deliver value = F5, Delete
Título: Re:ucListView KeyPress
Publicado por: bebekbdg en Abril 17, 2011, 05:56:16 pm
 
Código: [Seleccionar]
                Case WM_KEYUP
               
                    If (wParam And &H7FFF&) = &H74 Or (wParam And &H7FFF&) = &H2E Then
                        RaiseEvent KeyPress(wParam And &H7FFF&)
                    End If
                   
                    RaiseEvent KeyUp(wParam And &H7FFF&, pvShiftState())
whether the code that I made ​​this modification has been good. or there is a better?
because when i press Delete With Msgbox cursor not selected.
Título: Re:ucListView KeyPress
Publicado por: raul338 en Abril 20, 2011, 06:40:56 am
KeyPress only works with common keys (letters and digits). For every key use KeyDown or KeyUp
Título: Re:ucListView KeyPress
Publicado por: bebekbdg en Abril 25, 2011, 10:10:15 pm
thank you boss. turns out the problem was there ... :)  ;D ;D