สอบถาม vb.net
รบกวนสอบถาม อจ. code การแสดง 2 จอ vb.net ฝั่งผู้ใช้งานและผู้มาใช้บริการ'// หาจำนวนจอมอนิเตอร์ (คำสั่งอยู่ในฟอร์มหลัก)
Dim NumOfMonitors As Integer = Screen.AllScreens.Length
If NumOfMonitors > 1 Then
'Me.Bounds = Screen.AllScreens(0).Bounds '// ระบุมอนิเตอร์ให้แสดงผล
'// เปิดฟอร์ม 2
With Form2
.Show()
'.Bounds = Screen.AllScreens(1).Bounds
.Location = Screen.AllScreens(1).WorkingArea.Location
.StartPosition = FormStartPosition.Manual
.FormBorderStyle = FormBorderStyle.None '// ปิดปุ่ม Min/Max/Close
.WindowState = FormWindowState.Maximized '// แสดงผลเต็มจอ
End With
End If ขอบคุณครับ
หน้า:
[1]