I cannot find the way to attach a picture/icon to my items in the listview
control even it was set to be shown in small items view.

The command I am using is:

ListView.Items.Add(New ListViewItem("xxxx", 1)
where "xxxx" is a string and 1 is the listing no of my icon in the image
list. However, the system is prompting error on that.

Other than that, I cannot show a picture on my message box also, like what
we could in vb.net, vbquestion/vbinformation.....those kind of pictures. Is
there anyways to do it in compact framework?

Thanks, to whom are helping me with the above matters. Thank you.

Re: Adding picture/icon in ListView Control by SiewSa

SiewSa
Thu May 13 00:51:41 CDT 2004

Thank you Paul, thank you for sharing. It works.

"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> wrote in
message news:ePsndGDOEHA.640@TK2MSFTNGP12.phx.gbl...
> Attached is the sample program in VB.NET for the RFUtils portion of
> OpenNETCF SDF's next version. It uses a listview to display an icon for
> each network adapter in the system. The 'icons' are 32x32 bitmaps which
are
> included in the project as Content items. If I understand your question,
> this should show you what you need to do.
>
> Paul T.
>
>
>