umit SOGUT

umit SOGUT

  • NA
  • 1
  • 0

PiCTURE BOX PROBLEM !!! (Please , only one answer)

Apr 10 2007 10:37 AM
Thanks for your relation :) My problem is picturebox.I create 30 picturebox with code.And I add they events. 

For i = 1 To adet
  p(i) = New PictureBox
  p(i).Location =
New Point(10, (i * 150) - 140 + (i - 1) * 10)
  p(i).Size =
New Size(150, 150)
  p(i).BorderStyle = BorderStyle.FixedSingle
 
  Me
.Panel1.Controls.Add(p(i))
  Me.Panel1.AutoScroll = True
 
  AddHandler
p(i).Click, AddressOf Me.hesapla '''''hesapla is a sub :)
Next i

MY PROBLEM:
I  want to know which picturebox is clicked ? What can I do ?  


Answers (1)