VB.NET è profondamente diverso da VB6, e non puoi riciclarne il codice come se nulla fosse; di seguito il codice corretto:
.codice:Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer SendMessage(ListGG.Handle, 4116, 0, 20)

Rispondi quotando