in the btn control, define the tag property with a meaningful string, like "buton1" or "stream1", then using the sender, like you did, just check the tag, like:
btn=sender
if btn.tag = "stream1" then....
or use a select case, like
select btn.tag
case "stream1"
your code goes here
case "stream2"
your code goes here
end select