[resolved] delegates + functions
i've written some delegates that work well with subs but not with functions (see attached code). what am i doing wrong? i can't find any more information on MSDN
i've written some delegates that work well with subs but not with functions (see attached code). what am i doing wrong? i can't find any more information on MSDN
VB.NET:
Private Delegate Function listview_items_countCallback() As Integer
Public Function listview_items_count() As Integer
If Me.listview.InvokeRequired Then
Me.listview.Invoke(New listview_items_countCallback(AddressOf listview_items_count))
Else
listview_items_count = Me.listview.Items.Count
End If
End Function
Last edited: