views:

1714

answers:

2

Anyone know how to detect if a television is currently connected to a PC in c#?

Cheers

+4  A: 
Kristian
how on earth could you format the code like that?it is horrible.
Behrooz
A: 

I suppose you are talking about monitors/TV's ?

You can make a winform application with a big button saying 'TV CONNECTED' when the user switches to the TV :-)

If the only connection to the PC is just the VGA connector, you are out of luck. You could always implement an infrared sensor connected to a serial port to read infrared signals from the remote control (whenever the user clicks it).