Only the queens can lay eggs. To control ants you must find the nest and kill the queen. This can be done as a spot treatment or with baits that are taken back to the colony. Soapy water will knock down workers that are present. Individuals can then be wiped up.
Ant baits are the preferred in schools.
Workers will take poison back to the nest and feed it to the young and queen. Some ant baits are for sweet feeding ants, some for protein feeding ants, and some for both types. Active ingredients will include less toxic products such as boric acid, sulfuramid, abamectin, hydramethylnon and fipronil. Baits come in plastic stations, gels and pelleted baits. Different treatment sites will require different formulations.