On Wed, 2005-01-05 at 12:41 +1100, roy wrote: > I have used eventbox to park a image . but I need many eventbox and image. > when I click the eventbox, how can I know which eventbox I have clicked. it > seems I can not use eventbox array. > when I use following code, it cause error. > static EventBox[] eventboxm; > > eventboxm[0]=new EventBox();
From rom memory... There are lots of ways to handle the event box. Typically, the event is passed to the event handler and the box in question is accessed through the this pointer Have you had a look at the ImageList.ImageCollection class within SWF? It might be what you're after. http://msdn.microsoft.com/library/default.asp?url=/library/en- us/cpref/html/frlrfSystemWindowsFormsImageListImageCollectionClassTopic.asp TTFN Paul -- "He's not the Messiah, he's a very naughty boy!" - Life of Brian, Monty Python
signature.asc
Description: This is a digitally signed message part
