In order to develop miniaturized and integrated electron vacuum devices, the electron beam modulation in a field- emission (FE) electron gun based on carbon nanotubes is researched. By feeding a high-frequency field between the cathode and the anode, the steady FE electron beam can be modulated in the electron gun. The optimal structure of the electron gun is discovered using 3D electromagnetism simulation software, and the FE electron gun is simulated by PIC simulation software. The results show that a broadband (74-114 GHz) modulation can be achieved by the electron gun with a rhombus channel, and the modulation amplitude of the beam current increases with the increases in the input power and the electrostatic field.