Public Sub Button1_Click()
Dim dw As DesktopWindow
With dw = New DesktopWindow(Me.Id)
' Muevamos el formulario principal de nuestra aplicación al tercer escritorio (índice 2):
.Desktop = 2
End With
End
' Gambas class file
Public Sub Button1_Click()
Dim FTMP As New Form1
FTMP.X = 10 'PANTALLA 1
FTMP.Y = 10 'PANTALLA 1
FTMP.SHOW
End
Public Sub Form_Open()
Me.X = 100
Me.Y = 200
End
Public Sub Button2_Click()
Dim FTMP As New Form1
FTMP.X = 1700 'PANTALLA 2 'DEPENDE DE LAS DIMENSIONES DE PANTALLA QUE TENGAS
FTMP.Y = 10 'PANTALLA 2
FTMP.SHOW
End
Dim n As Integer
Dim b As Integer
Dim x As Integer
For n = 0 To Screens.Count - 1
If Screens[n].AvailableWidth > b Then
b = Screens[n].AvailableWidth
x = n
Endif
Next
Me.x = Screens[x].AvailableX
Me.y = Screens[x].AvailableY