corientdev / imagelistview

Automatically exported from code.google.com/p/imagelistview
1 stars 0 forks source link

Doubt #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
below code is vb.net converted DemoRenderer from CODEPROJECT ....

Public Class DemoRenderer
    Inherits ImageListView.ImageListViewRenderer
    Public Overrides Function MeasureItem(ByVal view As View) As Size
        If view = View.Thumbnails Then
            Dim itemPadding As New Size(4, 4)
            Dim sz As Size = ImageListView.ThumbnailSize + ImageListView.ItemMargin + itemPadding + itemPadding
            Return sz
        Else
            Return MyBase.MeasureItem(view)
        End If
    End Function
 End Class

 in vb.net i got some error in this line => "+ ImageListView.ItemMargin + " 

'Error :
   'itemmargin' is not a member of 'Manina.Windows.Forms.ImageListView'

Original issue reported on code.google.com by pc8...@gmail.com on 29 Jan 2013 at 11:53

GoogleCodeExporter commented 9 years ago
Please try the MeasureItemMargin method instead.

Original comment by oozcitak on 29 Jan 2013 at 7:25

GoogleCodeExporter commented 9 years ago

Original comment by oozcitak on 29 Jan 2013 at 7:25

GoogleCodeExporter commented 9 years ago
Issue 171 has been merged into this issue.

Original comment by oozcitak on 1 Oct 2014 at 1:08