
Just put 4 button in form then add code below.
Private Sub btClone_Click(sender As System.Object, e As System.EventArgs) Handles btClone.Click System.Diagnostics.Process.Start("DisplaySwitch.exe", "/clone") End Sub |
Private Sub btExtend_Click(sender As System.Object, e As System.EventArgs) Handles btExtend.Click System.Diagnostics.Process.Start("DisplaySwitch.exe", "/extend") End Sub |
Private Sub btPri_Click(sender As System.Object, e As System.EventArgs) Handles btPri.Click System.Diagnostics.Process.Start("DisplaySwitch.exe", "/internal") End Sub |
Private Sub btSec_Click(sender As System.Object, e As System.EventArgs) Handles btSec.Click System.Diagnostics.Process.Start("DisplaySwitch.exe", "/external") End Sub |
Work with Windows 7 Only, because displayswitch is build in command in windows 7.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment