How do you play b on the french horn?

To play a B on the French Horn, hold down the middle valve and blow. However, usually French Horn music features B flats, and in that case you would hold down the first valve and blow.