My ListView does not always show the image I have set.

95 pts.
Tags:
ImageList
listview
VB.NET
VB.NET 2005
VB.NET ImageList
VB.NET ListView
I have a listView control, and an ImageList on my form. I have the ImageList set as the SmallImageList for my ListView. When I load the data into my ListView, I check one field to see if a flag is set to "Y". If it is, I execute the following lines to display my image in the ListView.: If sHasFlag = "Y" Then itemX.ImageIndex = 0 End If When I run this on my development PC, the image always shows. When I install my application a user PC, the image does not always show. It about 50/50 if the image will show or not. I run the same data through the application, so I know that the flag is set to "Y". I have added a button to my form that when clicked will display a message box showing the value in the flag. It is set to a "Y". What would cause the image to not show? Thanks in advance for any answers.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following