I would like to suggest resetting the PRAM. If you don't know how to do that, read the following:
1) Restart your computer
2) Hold cmd+opt+P+R while it's starting up
3) It should reboot before it really starts loading
4) Let it reboot 3 times (to make sure it's completely cleared)
5) Let go of the keys, let it start up normally.
Hopefully that will fix your problem.
Thanks for your replay.
My problem is how I generate small program in C/C++/C# that I will be able to check which display connected to which connector(VGA/DVI/HDMI).
Util now I manage to create application that check the name of the display, but I still do not know to which connector it is connected.
I am new here and read this article and agree with this artilce.Thanks to talking us about his artilce.
I have got a 'conventional' flash detect script in place, however, if a user has not got Flash Player installed then it redirects to another page... (not ideal)