How to Maximize a form to TV-Out

Rexy

Member
Joined
Jan 16, 2007
Messages
14
Programming Experience
1-3
How to tell a windos form, when it is called (form.show)

To Maximize to 2.Screen(TV-Out)
(I have One Monitor and One TV-OUT)

Kind Regards Jan
 
Set the form's Location to somewhere on the second monitor and then maximise it. You can use the Screen class to get the desktop area of your monitors, e.g.
VB.NET:
Private Sub Form1_Load(ByVal sender As Object, _
                       ByVal e As EventArgs) Handles MyBase.Load
    For Each monitor As Screen In Screen.AllScreens
        If Not monitor.Primary Then
            Me.Location = monitor.Bounds.Location
            Me.WindowState = FormWindowState.Maximized

            Exit For
        End If
    Next
End Sub
 
Back
Top