A computer housing includes a main body, a panel, a latch piece, and a release member. The main body defines a latch hole. The panel has a hook on a first side thereof. The latch piece is positioned on a second side of the panel and defines a receiving hole therein. The release member is positioned on the main body and forms a latch protrusion. The hook is received in the latch hole of the main body. The latch protrusion engages with the receiving hole such that the panel is locked to the main body. The release member is deformable so that the latch protrusion disengages from the receiving hole.