Ejemplo n.º 1
0
        private void pic_Click(object sender, System.EventArgs e)
        {
            if (picSelected != null)
            {
                picSelected.BorderStyle = BorderStyle.FixedSingle;
            }

            picSelected             = (PictureBox)sender;
            picSelected.BorderStyle = BorderStyle.Fixed3D;

            PictureSelectedEventArgs args = new PictureSelectedEventArgs((string)picSelected.Tag, picSelected.Image);

            if (PictureSelected != null)
            {
                PictureSelected(this, args);
            }
        }
Ejemplo n.º 2
0
 private void CustomPictureBox1_PictureSelected(object sender, PictureSelectedEventArgs e)
 {
     MessageBox.Show("You Chose " + e.FileName);
 }