Best way is to use monitor detection. Simply set your output to the second monitor and you're done.
If you want control over the VGA port itself, you will need to look into the hardware and driver specifications of you graphics adapter.
Ketsuekiame
Veteran Poster
1,197 posts since May 2010
Reputation Points: 553
Solved Threads: 153
Skill Endorsements: 9