View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:13 PM
Mark G
Posts: n/a
Use the sender object to determine what picture was clicked.
You can create a myPic variable and assignn the sender object to it. Once assigned (myPic = sender) you can read the name or tag property into a string variable and use a select case .

Dim myPic as PictureBox

myPic = sender
strTag = myPic.Tag
strName = myPic.name

select case strTag
case "Die1"
labelPic1.text ="'HOLD"
case "Die2"
ect....

If you use the tag property you will have to load the tags via the properties at design time or load them in run time.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!