kisflee โพสต์ 2023-4-15 09:14:22

สอบถาม vb.net

รบกวนสอบถาม อจ. code การแสดง 2 จอ vb.net ฝั่งผู้ใช้งานและผู้มาใช้บริการ

thongkorn โพสต์ 2023-4-16 18:39:34

      '// หาจำนวนจอมอนิเตอร์ (คำสั่งอยู่ในฟอร์มหลัก)
      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

kisflee โพสต์ 2023-4-18 16:35:40

ขอบคุณครับ
หน้า: [1]
ดูในรูปแบบกติ: สอบถาม vb.net