Your health care provider will then put the tape on a slide and look for the eggs under a microscope. Treatment for a pinworm infection begins after the health care provider identifies the eggs.