[Mono-list] eventbox array

roy roy@websitemanagers.com.au
Wed, 5 Jan 2005 12:41:09 +1100


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();

thanks


----- Original Message ----- 
From: "Peter Dennis Bartok" <peter@novonyx.com>
To: "roy" <roy@websitemanagers.com.au>; <mono-list@lists.ximian.com>
Sent: Wednesday, December 22, 2004 10:45 AM
Subject: Re: [Mono-list] about popup a menu


> Roy,
>
> You probably should pick up a book about System.Windows.Forms programming.
> It will teach you how to use the different controls.
>
> The control you need to use to do a popup menu like this is called
> ContextMenu, you need to attach it to the ContextMenu property of Control.
>
> Peter
>
> -----Original Message-----
> From: "roy" <roy@websitemanagers.com.au>
> To: <mono-list@lists.ximian.com>
> Date: 21 December, 2004 16:03
> Subject: [Mono-list] about popup a menu
>
>
> hi,
> it's really nice to attend this mail-list.
> I want to popup a menu when I right-click a eventbox. like when I
> right-click a file and select copy or paste on windows. I am programming
by
> using mono on linux. can you give me a hand?
> roy
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>