Bait live or snap traps with peanut butter and position them near the dishwasher, preferably alongside nearby walls. If you can pull out the dishwasher enough to put a trap behind it, you have a good chance of catching a mouse.
Check live traps every hour and first thing in the morning. Check snap traps at least once a day. The smell of dead mouse is extremely unpleasant in a kitchen.
Release live mice as far away from your property as possible, preferably at least a couple of miles. Put dead mice at the bottom of your garden for local wildlife to eat or tie them in plastic bags and place them in the trash.
Vacuum up all crumbs from your kitchen, focusing on removing those behind and underneath kitchen appliances and furniture.
Place dried food in metal, ceramic or glass storage containers. Mice can easily chew through plastic wrappings.
Soak cotton balls in peppermint oil and distribute them around the dishwasher and anywhere else you suspect mice were hiding.
Mouse-proof your home. Seal up gaps in walls, around windows and near pipes with the appropriate building materials, such as plaster. Wire wool is also effective as a temporary solution.
Check the dishwasher and other wiring. Mice like to chew things, including cables, and this produces a fire hazard.