My monitor has both DVI and VGA inputs, and I have in the past had two computers hooked up to it, but there is no way to 'switch' between one and the other unless I power down one computer and power up the other.
Has something to do with the monitor 'auto sensing' which input is being used...