Hello!
Take a look at the example codes for FRC. Go to the Getting started Window, press on the support tab on the left, and press in "find FRC examples". The solenoid example is under the "actuators" tab.
Also, Take a look at some of the tutorial videos on
www.frcmastery.com.
Good Luck!