Is there a way to pass a form to a function and have that form's controls accessible from the function? A form can be passed to a function but items like buttons and listviews are not defined and throw errors. I know, pretty vague question with few details but I think I almost know the reason for this behaviour!