A method of converting a poorly water soluble crystalline compound to an amorphous compound and a method of increasing the solubility of a poorly water soluble crystalline compound in biorelevant fluid at pH 6.5 is disclosed. The method includes dissolving the compound and a polymer in a solvent to form a solution, the polymer being present in the solution in an amount such that after electrospraying the solution the compound is in an amorphous form, electrospraying the solution using an electrospray system, the electrospraying forming nanoparticles, collecting the nanoparticles on a substrate, and removing the nanoparticles in the form of a powder.