A cover-equipped electronic device comprising: a device body; and a cover to be attached to the device body wherein one of the device body and the cover has a projecting latch, and an other of the device body and the cover has a receiving hole or a receiving recess that is configured to receive the projecting latch, the projecting latch being configured to latch into the receiving hole or the receiving recess and make the cover attached to the device body when the cover is moved in a predetermined latching-force-acting direction; wherein a restraining guide is provided between the device body and the cover and is configured to allow the cover to move in the latching-force-acting direction while restraining the cover in a direction intersecting the latching-force-acting direction; and wherein restraint by the restraining guide is disabled when attaching of the cover to the device body is complete with the projecting latch latched into the receiving hole or the receiving recess, characterized in that the projecting latch includes a locking projection configured to lock the cover in a vertical direction (Z1-Z2) in such a manner as to prevent the cover from moving away from the device body and configured to further lock the cover in a horizontal direction (X1-X2) intersecting both the vertical direction and the latching-force-acting direction, the locking projection locking the cover when being inserted into the receiving hole or the receiving recess; and a latching projection configured to make the cover unmovable in the latching-force-acting direction. a device body; and a cover to be attached to the device body wherein one of the device body and the cover has a projecting latch, and an other of the device body and the cover has a receiving hole or a receiving recess that is configured to receive the projecting latch, the projecting latch being configured to latch into the receiving hole or the receiving recess and make the cover attached to the device body when the cover is moved in a predetermined latching-force-acting direction; wherein a restraining guide is provided between the device body and the cover and is configured to allow the cover to move in the latching-force-acting direction while restraining the cover in a direction intersecting the latching-force-acting direction; and wherein restraint by the restraining guide is disabled when attaching of the cover to the device body is complete with the projecting latch latched into the receiving hole or the receiving recess, characterized in that the projecting latch includes a locking projection configured to lock the cover in a vertical direction (Z1-Z2) in such a manner as to prevent the cover from moving away from the device body and configured to further lock the cover in a horizontal direction (X1-X2) intersecting both the vertical direction and the latching-force-acting direction, the locking projection locking the cover when being inserted into the receiving hole or the receiving recess; and a latching projection configured to make the cover unmovable in the latching-force-acting direction. a locking projection configured to lock the cover in a vertical direction (Z1-Z2) in such a manner as to prevent the cover from moving away from the device body and configured to further lock the cover in a horizontal direction (X1-X2) intersecting both the vertical direction and the latching-force-acting direction, the locking projection locking the cover when being inserted into the receiving hole or the receiving recess; and a latching projection configured to make the cover unmovable in the latching-force-acting direction.