14-07-2008, 07:01 PM
The part your missing Poyzin is the array of images the .count method is expecting to find.
ref:
Each new imgIcon is now refered to by its position in the array eg; imgIcon(4).
The frmMirage.imgIcon.Count defines the upper value of the For loop as - the number of imgIcon images in the array minus 1.
Hope this helps.
ref:
Quote:4. On frmIcon, make an INDEXED image (as many as you want for emoticons), named imgIcon.Basically copy and paste imgIcon onto frmIcon as many times as you have emoticons, the first time you c+p the image box the IDE will ask you if you want to make a control array, click yes.
Each new imgIcon is now refered to by its position in the array eg; imgIcon(4).
Code:
For i = 0 To frmMirage.imgIcon.Count - 1 'Loop through each icon
Hope this helps.