A rapid and sensitive method for detection of cell- and compartment-specific gene expression in individual cells of both Gram-negative and Gram-positive microorganisms is described. The method combines the use of gene fusions to lacZ, and a fluorogenic β-galactosidase substrate, fluorescein-di-(β-d-galactopyranoside), with digitized video microscopy. All of the reporter constructs tested were successfully detected. Secondary staining of the cells with a nucleic acid-specific dye, propidium iodide, allowed cells devoid of nucleic acid to be identified, while cell nucleoid shape and the morphological stage of development could be correlated with the location of β-galactosidase activity. The double-staining procedure was used to show that gene expression can be induced in non-culturable cells of Salmonella enteritidis produced by carbon/nitrogen starvation. The resolution was sufficient to distinguish between cells at different morphological stages of sporulation in Bacillus subtilis. This highly sensitive and rapid method may have many other applications in basic and applied microbiology.