A method for mounting an electrical box to a structural element of a building includes drilling an opening in a structural element, and passing a tubular portion associated with an electrical box through the opening in the structural element. The tubular portion is locked in position with respect to the structural element.