[Mono-list] eventbox array

Paul paul@all-the-johnsons.co.uk
Wed, 05 Jan 2005 02:05:23 +0000


--=-Iq8Cr9TPgx5KGo9nWHCi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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;
>=20
> eventboxm[0]=3Dnew EventBox();

=46rom 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=3D/library/en-
us/cpref/html/frlrfSystemWindowsFormsImageListImageCollectionClassTopic.asp

TTFN

Paul

--=20
"He's not the Messiah, he's a very naughty boy!"
- Life of Brian, Monty Python

--=-Iq8Cr9TPgx5KGo9nWHCi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBB20thusSVe5EZv3wRApByAJ0X0geR/tWVsQQBn0f9l/G1YdymMACghXRN
Z2bSVswKTLtaVixJs8Y6pRs=
=W7iI
-----END PGP SIGNATURE-----

--=-Iq8Cr9TPgx5KGo9nWHCi--