The free-body diagram is missing, but I assume the only forces acting on the box are the force F pushing the box, the weight of the object and the normal reaction of the surface.
Since the weight and the normal reaction acts in the vertical (y) direction, the only force acting on the box in the horizontal (x) direction is the horizontal component of the force F, which is given by

And so this is the net force in the x-direction.