anybody knows the vb.net version of the code below??? have tried the other solution using Class but I don't want to revise everything...

this listview gridlines issue hasn't been addressed in vb.net. nothing but faint lines are drawn as grid even when you the property as true... have searched around but couldn't find any... help please...



Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, _
ByVal Msg As Long, _
ByVal wParam As Long, _
lParam As Any) As Long

Private Const LVM_FIRST As Long = &H1000
Private Const LVM_SETEXTENDEDLISTVIEWSTYLE As Long = (LVM_FIRST + 54)
Private Const LVS_EX_GRIDLINES As Long = &H1

Private Sub Form_Load()
Call SendMessage(ListView1.hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_GRIDLINES, ByVal -1)
End Sub