1
Open Discussion / Re: Siemens S7 driver
« Last post by ScottM on May 28, 2024, 07:42:50 PM »I can confirm the driver is very stable on the S7-1200 PLCs, I will be on the 1500s next.
If MenuPosition = AdvancedHMI.Controls.MenuPos.LeftOrTop Then
If pf.width < pf.height Then
'* Menu is on left
f1.Size = New Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - pf.Width, pf.Height)
f1.Location = New Point(pf.width, 0)
Else
'* Menu on Top
f1.Size = New Size(pf.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - pf.Height)
f1.Location = New Point(0, pf.height)
End If
Else
'* Menu on Right
If pf.width < pf.height Then
f1.Size = New Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - pf.Width, pf.Height)
f1.Location = New Point(pf.location.x - f1.Width, 0)
Else
'* Menu on Bottom
f1.Size = New Size(pf.Width, System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - pf.Height)
f1.Location = New Point(0, pf.location.y - f1.Height)
End If
End If