img = 1 ' Starting from 1st picture. img is index for pic[] array.
OnButtonClicked() ' Directly invoking it to display a picture aSaP.
Controls.ButtonClicked = OnButtonClicked
' --------------------------------------------------------------------------------------------------------------------------------------------------'
Sub OnButtonClicked
EndSub
' --------------------------------------------------------------------------------------------------------------------------------------------------'
Sub LoadImages
For img = 1 To imgmax
GraphicsWindow.Title = "Loading #" + img
Sound.PlayChimes()
pic[img] = ImageList.LoadImage( Flickr.GetRandomPicture(tag) )
EndFor
PicCount = Array.GetItemCount(pic) ' Redundant to img_max. Using just for example purposes.