>in modo che possa spostare la window anche con il mouse.
>Mi piacerebbe anche spostarla con le frecce, quindi intercettare
>keypress...
>in pratica se clicco freccia sx, la win si dovrebbe spostare
>a sx di quanto
>decido nel codice (che sarà un pixel alla volta).
>avete idee?
Prova così:
If m.Msg = &H100 Then
Select Case m.WParam
Case 37
Me.Left = Me.Left - 100
Case 38
Me.Top = Me.Top - 100
Case 39
Me.Left = Me.Left + 100
Case 40
Me.Top = Me.Top + 100
End Select
End If
Naturalmente il focus deve essere sulla finestra.
&H100 è il messaggio WM_KEYDOWN
Ciao
David De Giacomi | <empty>
http://blogs.dotnethell.it/david/