Question Overload resolution failed because no accessible

John Dunne

New member
Joined
Sep 9, 2009
Messages
2
Programming Experience
Beginner
Hi

I'm getting Overload resolution failed because no accessible error, but cannot see what to change to fix this

Overload resolution failed because no accessible 'SendMessage' can be called without a narrowing conversion: (BC30519)

the code

Public Sub DeleteAllItems()

Me.BeginUpdate()
SendMessage(Me.Handle, LVM_DELETEALLITEMS, 0&, 0&)
Me.EndUpdate()
End Sub

any suggestions
Help is appreciated
Thanks
 
How have you declared your SendMessage method? You've declared the parameters as particular types so you have to pass arguments of those particular types. What exactly do you have those ampersands in there for?
 
Back
Top