1,105,546 Community Members

Connect to VGA Port

Member Avatar
s_s21
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi, I need to connect to a VGA (or other video computer output) using c# to send out image, Does anyone know how to do it?

Member Avatar
BobS0327
Posting Whiz in Training
204 posts since Feb 2008
Reputation Points: 24 [?]
Q&As Helped to Solve: 29 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi, I need to connect to a VGA (or other video computer output) using c# to send out image, Does anyone know how to do it?

I really don't understand what you're trying to do here. Are you implementing some type of dual monitor setup where you want to send the image to the second connected monitor?

Member Avatar
s_s21
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Yes, I want implement some type of dual monitor, on my laptop screen i will see the desktop or the C# program and from the VGA output I'll send an image (of picture or something else).

Member Avatar
Ketsuekiame
Posting Virtuoso
1,676 posts since May 2010
Reputation Points: 793 [?]
Q&As Helped to Solve: 231 [?]
Skill Endorsements: 27 [?]
 
0
 

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.

Member Avatar
s_s21
Newbie Poster
3 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

The problem is that I want to send out an arrow cursors and if I'll send the whole screen I'll see more things that i don't want..

Member Avatar
skatamatic
Posting Shark
980 posts since Nov 2007
Reputation Points: 371 [?]
Q&As Helped to Solve: 133 [?]
Skill Endorsements: 5 [?]
 
0
 

This link talks about ways to calculate the .Left and .Top parameters to display forms on other screens. You do not want to communicate directly with a VGA driver - your software will only work with 1 type of device with 1 type of driver hense the abstraction through things like GDI and DirectDraw.

Member Avatar
BobS0327
Posting Whiz in Training
204 posts since Feb 2008
Reputation Points: 24 [?]
Q&As Helped to Solve: 29 [?]
Skill Endorsements: 0 [?]
 
0
 

Yes, I want implement some type of dual monitor, on my laptop screen i will see the desktop or the C# program and from the VGA output I'll send an image (of picture or something else).

Check out the Screen Class. Here's the link

http://msdn.microsoft.com/en-us/library/system.windows.forms.screen.aspx

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article