Get a bottle of Cutter that attaches to the water hose. Put the horses out and scrape the stalls down. Spray the walls with the cutter making sure not to get it in the feed bucket or water. Let it dry and then put new shavings down. This will keep the bugs out for quite awhile.
Also you can just put a fan in the stall and that will help keep them out.
For fly spray I make my own and it is better than most store bought with the exception of the 14 day stuff. I mix about 12 or 14 drops of Citronella oil, a squirt of Dawn and white vinegar in a spray bottle or if I use a gallon pump sprayer (which I personally prefer) its a tbs of citronella, 1/4 cup of Dawn and vinegar.
Apple Cider Vinegar is great stuff all around. It helps with skin problems, arthritis, and lots of other things including pest control.
I used to use the garlic but it has been said to cause anemia if used in large amounts. I have also been told that extended use could possibly do the same. I did not have any problems until this year when one of the horses got sick and the vet told us he was anemic. I have not been using the garlic since. The vet told me that he is almost completley sure that is not what it was but just to be on the safe side they are all off of it for now since the spray is controlling them so well.
I do not use them but I have seen horses with the fly straps for the legs and neck at rodeos and there were no flies on them.
I ride high in the saddle, always saddle my own horse
still I'm every inch a lady from the outside to the core
I take the trail less traveled `cause I know where it leads
I live my life by the cowgirl creed

As for me and my horse, we will ride for the Lord!