Jeremy6996

Is it possible to create an applecation that can view, for example the desktop is display on one mondratore, while a full screen applecation is displayed in the other. Both viewing from the same computer.


Re: Visual Basic Express Edition Two Computer Screen.

vtortola

Can you rephrase the question

You can show the forms in differents monitors.

Regards.





Re: Visual Basic Express Edition Two Computer Screen.

Jeremy6996

Hmm, Say I have two Computer Screens. Both Viewing the desktop.

Then by pressing (for example control key), I control the layout of the Computer Screen On the left, Basicly two diffrent computers that share everything but there screen layout on the same computer, so if I opend an applet using left screen, It would'nt show on the right. And if I open the applet on the right it would'nt show on the left. Although the Two layouts still share the same data.

Its really hard to explain.





Re: Visual Basic Express Edition Two Computer Screen.

Jeremy6996

I posted before about this, but its dead now. Anyway I was wondering is it possible to create an application that would handle two computer-screens, Basicly the layout of the window. For example say I have two keyboards, two mouses and two Computer-Screens, plugged into the same computer. One would control the layout of the left screen the other, to the right.





Re: Visual Basic Express Edition Two Computer Screen.

ReneeC

There are a couple of classes that deal with primary and secondary displays.

But I've seen any aspect of windows that deals with two keyboards.






Re: Visual Basic Express Edition Two Computer Screen.

Jeremy6996

Hmm.....could you explain a little more about the ones that handle with secondary and primary display.

~Jeremy.A.W





Re: Visual Basic Express Edition Two Computer Screen.

ReneeC

They a mostly monitoring and identification.

In help and the object browser, take a look at System.Windows.Forms.System.Information and System.Windows.Forms.Screen.






Re: Visual Basic Express Edition Two Computer Screen.

Jeremy6996

I managed to get the list of screens plugged in by using this code

Code Snippet

On Error GoTo err

Dim OnDeviceNo As Integer

Dim Errorr As Boolean = False

While (True)

If (My.Computer.Screen.AllScreens(OnDeviceNo).DeviceName_

.IsNullOrEmpty(False)) Then GoTo err

MonitoresOutput1.Items.Add(My.Computer.Screen.AllScreens(OnDeviceNo).DeviceName)

MonitoresOutput2.Items.Add(My.Computer.Screen.AllScreens(OnDeviceNo).DeviceName)

OnDeviceNo = OnDeviceNo + 1

End While

OnDeviceNo = 0

err:

err2:

On Error GoTo err3

ScreenInputKey1.Items.Add(My.Computer.Keyboard.GetType.Name())

OnDeviceNo = OnDeviceNo + 1

OnDeviceNo = 0

err3:

Though I don't know how to do anything to them.





Re: Visual Basic Express Edition Two Computer Screen.

ReneeC

There is not a lot there.

I'm think that it's not what you do to the screens but what your applications do. for example you might try this in a form

Me.left = screenwidth + 300

and

Me.left = screenwidth = 300






Re: Visual Basic Express Edition Two Computer Screen.

ReneeC

Btw, Jeremy I just noticed that code. Erm, I'm quoting and old enginerr I once knew. "Use Goto's like each time you used one, you will loose a finger.

That code, looks like VB^ ... whatever you do, learn to code like that - NOT!






Re: Visual Basic Express Edition Two Computer Screen.

Omar Abid

Did u mean like remote desktop





Re: Visual Basic Express Edition Two Computer Screen.

ReneeC

No he doesn't. He's asking about dual monitor support.




Re: Visual Basic Express Edition Two Computer Screen.

Omar Abid

He'll need 2 graphic cards !





Re: Visual Basic Express Edition Two Computer Screen.

Jeremy6996

ReneeC wrote:

Btw, Jeremy I just noticed that code. Erm, I'm quoting and old enginerr I once knew. "Use Goto's like each time you used one, you will loose a finger.

That code, looks like VB^ ... whatever you do, learn to code like that - NOT!

XD, I know I was doing a quick job on the code. I really should not use On error goto, to detect the end of the loop.





Re: Visual Basic Express Edition Two Computer Screen.

Martin Xie - MSFT

Merge the two threads which have the same topic, so all information about this issue will be in the same location.