The invention relates to a casing for electronic and similar devices. Such casing has a body part and a cover part for covering and to seal the content in the body part. The cover part is a flexible and impermeable foil that extends over an aperture in said body part and onto an essentially even surface surrounding said aperture. The cover part is attached to said surrounding surface by an adhesive.