The force on a charged particle in magnitude field F=q(v×B)
The proton is moving along the axis of solenoid. Magnetic field inside the solenoid is parallel to the axis of solenoid. ∴v→∥B→ F=qvBsinθ θ=0 F=0 ∴ The proton will continue to move with velocity along the axis.