Patent ID: 8534778

Claim:
An enclosure comprising: a chassis; a front panel installed on the chassis and defining an opening, two mounting boards located on the front panel and arranged at two opposite sides of the opening, each of the two mounting boards defining a first slot; and a cover comprising a base wall, two sidewalls located on opposite sides of the base wall, and two resilient pieces, each of the two resilient pieces extending from each of the two side walls, a first latching portion located on each of the two resilient pieces, a groove defined between each of the two sidewalls and each of the two resilient pieces, wherein the first latching portion of each of the two resilient pieces is engaged in the first slot of each of the two mounting boards, to secure the cover to the front panel, and each of the two resilient pieces is resiliently deformable to be received in the groove, to disengage the first latching portion of each of two resilient pieces from the first slot of each of the two mounting boards; the first slot of each of the two mounting boards comprises a first short portion, a first long portion communicating with the first short portion, and a stopping portion communicating with the first long portion, the cover is slidable relative to the front panel between a first position and a second position; when the cover is located in the first position, the first latching portion of each of the two resilient pieces is engaged in each first short portion; and when the cover is located in the second position, the first latching portion of each of the two resilient pieces is engaged in each stopping portion; and each of the two mounting boards defines a recess, a protrusion is located on each of the two sidewalls, and when the cover is located in the first position, the protrusion of each of the two sidewalls is engaged in the recess of each of the two mounting boards.