Hi there,
Is there a way in vb2005 to:
passtrough the name of a control to an other sub? I have 5 pictureboxes.
I want to do some action in the other sub, depending on what control has been clicked on.
example:
Private sub Picture1_Click()
dim objControlName as Picturebox
objControlname = Picturebox1
ActionOnClick(objControlName)
end sub
Private sub ActionOnClick(objControlName)
if objControlName.image=("C:\.........\image1.bmp) then
action
endif
I can't figure out how to handle this one...
Please Help..
Thanks ...
Grtz,
Nokkieja
end sub