\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.
\dashbox
width
height
dash_length