A variable force solenoid for operating a hydraulic pressure regulating valve which includes an actuator shaft aligned with the central axis of the valve and solenoid, a coil of electrical conducting wire, a cylindrical core on which the wire is wound and through which the induced magnetic flux flows, an actuator actuates shaft spaced by a non-working air gap from the casing and moveable axially toward and away from the edge of the core, flexible bearings at opposite axial ends of the actuator shaft and a compression spring. A force is applied to the actuator shaft by a unique double spring combination. The flexible bearings restrict lateral displacement of the actuator and permit frictionless axial displacement of the actuator. The hydraulic valve has a valve spool that moves due, to the position of the actuator, from a position that produces maximum pressure when the coil is de-energized to a position that produces zero pressure when the coil is energized. A zero pressure adjustment and maximum pressure adjustment establish the correct position of the valve spool within the valve body.