Autor Beitrag
Xclusive
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56


C#
BeitragVerfasst: Mi 17.11.10 22:28 
So


Zuletzt bearbeitet von Xclusive am Sa 05.03.11 13:27, insgesamt 3-mal bearbeitet
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Mi 17.11.10 22:58 
Dort wo du die PictureBox erzeugst auch den EventHandler zuweisen.

ausblenden C#-Quelltext
1:
 _PictureBox[x,y].Click += pictureBox_Click;					


und im EventHandler dann den sender auswerten.

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
private void pictureBox_Click(object sender, EventArgs e)
{
    PictureBox pictureBox = sender as PictureBox;
    if (pictureBox != null
    {
        // blah
    }
}
Xclusive Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56


C#
BeitragVerfasst: Do 18.11.10 00:15 
Der Name "pictureBox_Click" ist im aktuelle Kontex nicht vorhanden, wo muss ich da noch was einfügen?
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Do 18.11.10 01:23 
Ähm :?: Der gesuchte Codeteil ist im selben Posting. Nur ein paar Zentimeter tiefer.
Xclusive Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56


C#
BeitragVerfasst: Do 18.11.10 15:08 
user profile iconRalf Jansen hat folgendes geschrieben Zum zitierten Posting springen:
Ähm :?: Der gesuchte Codeteil ist im selben Posting. Nur ein paar Zentimeter tiefer.



Ah, okay.
Entschuldige.


Vielen Dank. : )