RE: row spacing in a userform listbox
Is it possible to increase the row spacing in a Listbox1 control on Userform1? The rows will decrease as the year progresses, if that makes any difference. Will this code work? (source:msdn). The font is highlighted in red when I copy and paste it into the Initialize method on the userform.
or is there an easier, less obvious way ?
Thanks for anyone's help.
cr
Is it possible to increase the row spacing in a Listbox1 control on Userform1? The rows will decrease as the year progresses, if that makes any difference. Will this code work? (source:msdn). The font is highlighted in red when I copy and paste it into the Initialize method on the userform.
Code:
Private Sub ListBox1_MeasureItem(ByVal sender As Object, ByVal e As System.Windows.Forms.MeasureItemEventArgs) Handles ListBox1.MeasureItem
e.ItemHeight = 30
End Sub
Thanks for anyone's help.
cr