mercredi 11 mars 2015

How to use random class for displaying Image

I have SQL Table with RecordId, ImageName and ImagePath with no. of records. Suppose I have to choose list of 7 RecordId from Table randomly (using Random class). Then I need to display the Image associated with RecordId one by one in pictureBox control.


I have already tried with for loop but it display only last record.





Aucun commentaire:

Enregistrer un commentaire