We analyse the spatially resolved colours of distant galaxies of known redshift in the Hubble Deep Field, using a new technique based on matching resolved four-band internal colour data to the predictions of evolutionary synthesis models. We quantify the relative age, dispersion in age, ongoing star-formation rate, star-formation history, and dust content of these galaxies. To demonstrate the potential of the method, we study the near-complete sample of 32 I<21.9 mag galaxies with <z> ~ 0.5 studied by Bouwens et al (1997). The dispersion of the internal colours of a sample of 0.4<z<1 early-type field galaxies in the HDF indicates that ~40% [4/11] show evidence of star formation which must have occurred within the past third of their ages at the epoch of observation. For a sample of well-defined spirals, we similarly exploit the dispersion in colour to analyse the relative histories of bulge and disc stars, in order to resolve the current controversy regarding the ages of galactic bulges. Dust and metallicity gradients are ruled out as major contributors to the colour dispersions we observe in these systems. The median ages of bulge stars are found to be signicantly older than those in galactic discs, and exhibit markedly different star-formation histories. This result is inconsistent with a secular growth of bulges from disc instabilities, but consistent with gradual disc formation by accretion of gas onto bulges, as predicted by hierarchical theories. We extend our technique in order to discuss the star formation history of the entire Bouwens et al sample in the context of earlier studies concerned with global star formation histories.