An electronic device comprising: a case member comprising a base part accommodating electronic components, the base part having a tubular shape including a first end portion, the first end portion comprising a clamp inserted therein, and a second end portion, the second end portion being closed by a cover portion; a flow control member that has a tubular shape defining a internal space, the flow control member comprising a first opening at one end and a second opening at the other end, the flow control member being disposed in the base part such that the first opening is located on the side of the first end portion and such that the second opening is located on the side of the second end portion; a gate formed in the clamp and adapted for the injection of resin into the case member therethrough; and a sealing resin substantially filling the internal space of the base part of the case member; characterized in that the sealing resin comprises an air bubble confined within the internal space of the flow control member; whereby the case member comprises a first resin flow path between the gate and the internal space of the flow control member, the first flow path passing between the inner surface of the base part and the outer surface of the flow control member and through the second opening of the flow control member; and a second resin flow path between the gate and the internal space of the flow control member through the first opening of the flow control member; wherein the air bubble is confined within the flow control member where the resin following the first flow path and the resin following the second flow path join together; and cross sectional shapes of the first flow path and the second flow path in a cross sectional surface perpendicular to a direction in which the tubular shape of the base part extends are determined such that the resin flowing in the first flow path reaches the second opening earlier than the resin flowing in the second flow path. a case member comprising a base part accommodating electronic components, the base part having a tubular shape including a first end portion, the first end portion comprising a clamp inserted therein, and a second end portion, the second end portion being closed by a cover portion; a flow control member that has a tubular shape defining a internal space, the flow control member comprising a first opening at one end and a second opening at the other end, the flow control member being disposed in the base part such that the first opening is located on the side of the first end portion and such that the second opening is located on the side of the second end portion; a gate formed in the clamp and adapted for the injection of resin into the case member therethrough; and a sealing resin substantially filling the internal space of the base part of the case member; characterized in that the sealing resin comprises an air bubble confined within the internal space of the flow control member; whereby the case member comprises a first resin flow path between the gate and the internal space of the flow control member, the first flow path passing between the inner surface of the base part and the outer surface of the flow control member and through the second opening of the flow control member; and a second resin flow path between the gate and the internal space of the flow control member through the first opening of the flow control member; wherein the air bubble is confined within the flow control member where the resin following the first flow path and the resin following the second flow path join together; and cross sectional shapes of the first flow path and the second flow path in a cross sectional surface perpendicular to a direction in which the tubular shape of the base part extends are determined such that the resin flowing in the first flow path reaches the second opening earlier than the resin flowing in the second flow path.