ListBox.RowPicture


Warning

This item was deprecated in version 2019r2. Please use DesktopListBox.RowImageAt as a replacement.

Description

Adds the picture assigned to the passed row index (zero-based).

Notes

The ListBox row does not resize to accommodate the Picture. If your picture does not fit via RowPicture, use CellTextPaint or CellBackgroundPaint to draw the picture yourself.

Sample code

The following example draws a picture in the first cell. The picture has been added to the project.

Listbox1.RowPicture(0) = UserPhotoImage

Compatibility

All projects types on all supported operating systems.