The old fashioned birth control pills made by several manufacturers keep you from ovulating thereby preventing fertilization of the ovum by the sperm. Some patches do this too. The process of preventing ovulation (the egg being released, as you said) is done through hormone level communication to the pituitary.
