As to the sleeping powders, I knew by this." He suddenly produced a small cardboard box, such as chemists use for powders.
He knew about the sleeping powder because of the chemists' box.
He didn't know what the box was used for.