Hello shams_nee
Thank you for posting your query on HP Support Forum
The VGA and DVI ports which is onboard are plug and play ports.
There is no settings in the BIOS to switch from VGA to DVI.
If you are looking for dual display conncet the VGA Cable to VGA port and DVI cable to DVI port.
In case you are not getting display from DVI port then would recommend to update the Graphics Driver and the link if given below:
****Click the Kudos Button on left to say Thanks****
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
Thank You,
K B T 86
Although I am an HP employee, I am speaking for myself and not for HP