Link to home
Start Free TrialLog in
Avatar of luciliacoelho
luciliacoelhoFlag for Portugal

asked on

how can i send a diferent image to two monitors pluged to one computer with a VGA Splitter

how can i send a diferent image to two monitors pluged to one computer with a VGA Splitter, because now i have de two monitors displaying the same image  and not a diferent.
Avatar of Jon500
Jon500
Flag of Brazil image

A VGA splitter, by definition, will ALWAYS send the same video signal to each connected display.

What you need is a new video card for your computer, and you would plug one of the monitors into that card.

Regards,
Jon
Avatar of Pavel Celba
Look at your graphic card if it has two connectors or not. If yes then you are on a good way. Right click on the Windows desktop and select Options or Personalize and then select Display Setings or Advanced settings and you should see all available settings for your graphic card. If there is something like dual view etc. you may try it. Different graphic cards and different Windows versions have this setting done different way. You should look for information specific to your graphic card on the internet.

If you set something incorrect it can happen you'll see black screen and you would need to reboot.

When I said you need a "new video card" what I meant is that you need to keep your existing card and add an additional card to your system. This would give you two unique video outs. At that point you can customize your display using whatever operating system you have (which you did not yet mention).

Regards,
Jon
Avatar of luciliacoelho

ASKER

thanks for your sugestions. I hav two video cards in the computer, but what can i do in the form code to  direct output to card1 or to card2?
Because i have two forms running simultaneous and i have must run one of them in monitor1 and the other form in th monitor 2.
In the beginning of your thread you mentioned a "VGA splitter". That is very different from having two separate video adapters.

Can you provide details on the programming language you're using, whether this app is for your own use or for distribution, what hardware and software environments you expect to have (i.e., will all users have the same dual video-card setup and brand? will all be running a particular ver of Windows)?

Thank you,
Jon
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am just answering as it would be problem for Visual FoxPro because luciliacoelho is using this language.
@pcelba: You advice sounds good but is limited to:
1) the physical arrangement of monitors, which may be different for different clients, causing your assumed logical "left" to be on the physical "right" which, depending on what the software does, may simply not work.
2) that the author is using VB (is that not the language you used above?)
3) I am not so sure whether the GetSystemMetrics call would work if the operating system has only one of the two adapters set. For example, in my 2-monitor setup on my laptop, I often use just the laptop's display and not the external monitor (even if it is connected). It is unclear whether the author wants to "enable" adapters as the operating system does or whether he wants only to detect and use whatever is available.
4) The author seemed to want to know how to direct output to a specific physical adapters--not just stretch an image across two monitors.

@Author: Please clarify...

I just saw your VFoxPro message. OK...I did not realize the author was using VFoxPro (how did you know that?). :)
I have been contributing to several questions from the author, most of them in FoxPro zone.

And you are right the question is not as clearly stated as it could be, so I am offerring just some hints which can be accommodated to the real situation.

My solution cannot help to "enable" adapters as the operating system does, of course, and I think this is not a task for FoxPro even when it should be possible.

Lets wait for author's clarification.

If you provide VB solution then it should be easy to transform it into xBase language if necessary.
That explains about VFoxPro! Thanks...

Sure, did not mean in any way to criticize your post, as you know, but I am trying to obtain further clarity from the author and also let the author know that the question is very "open-ended" and that there are many considerations.

:)
thanks for your contribution, but the problem is not solved, because i want the two monitors runs simultaneous the diferente forms, and not activate 1 or activate 2
Why not solved? The answer ID:26284223 contains the solution. If you change the form's Top and Left property to be outside the main monitor then it will be displayed on the second monitor (or invisible if you move it wrog way). The form must be displayed As Top-Level forms (Form.ShowWindow property must be set to 2) to be possible to move it outside the main VFP window.

Simply ask users to move forms to appropriate place and then save form's position to some configuration file. Next time you may read the configuration file in form's Init event and change position programatically if the number of monitors is 2.

But you still did not say if Visual FoxPro is the language you would like to use...
the answer  ID:26284223 contains the solution. thanks