A portable computer includes a cover (1) unit and a base unit (2) connected with the cover unit. The cover unit includes a movable latch member (30), and a driving button (40). The latch member includes a pair of slanted slots (34) defined therein. The driving button includes a pair of driving posts (44) moving in the slanted slots. The cover unit is latched to the base unit via the latch member to cover the base unit and unlatched from the base unit via moving the latch member by manipulation of the driving button.