An example of the wavelike nature of light is diffraction.
An example of the particle-like of light is the photoelectric effect.
Electrons behave as particles when:
They are deflected in electric and magnetic fields.
De broglie wavelength eq.
λ = h/p = h/mv
Three years after de Broglie put forward his hypothesis, electron diffraction was demonstrated.
A narrow beam of electrons in a vacuum tube is directed at a thin metal plate foil.

The electrons in the beam passes through the metal foil:
How is the beam of electrons made?
The beam of electrons is produced by attracting electrons from a heated filament wire to a positively charged metal plate, which has a small hole at a centre. Electrons that pass through the hole form the beam.
The speed of the electrons can be can be increased by:
Increasing the potential difference between the filiament and the metal plate. This makes the diffraction rings smaller, because the increase of speed makes the de broglie wavelength small. So less diffraction occurs and the rings become smaller.