We present results from molecular-dynamics simulations of a generic bead-spring model of copolymer chains confined between solid walls and report on the glass-transition temperature and segmental dynamics as a function of film thickness and mesh size (the end-to-end distance of the subchains in the crosslinked polymer networks). Apparently, the glass-transition temperature displayed a steep increase for mesh-size values much smaller than the radius of gyration of the bulk chains, otherwise it remained invariant to mesh-size variations. The rise in the glass-transition temperature with decreasing mesh size and film thickness was accompanied by a monotonic slowing-down of segmental dynamics on all studied length scales. This observation is at...