\dashbox

\dashbox{dash length}(width,height){...}

The \dashbox has an extra argument which specifies the width of each dash. A dashed box looks best when the width and height are multiples of the dash length.