Custom resolution in VirtualBox

Sometimes you need some resolution to check the design of the website. And VirtualBox Video adapter provides only a small set of the predefined resolutions. This can easily be fixed by using the following shell command:

VBoxManage controlvm XP setvideomodehint 1280 800 24

This command will set the 24-bit colors, 1280×800 resolution for the XP virtual machine.