void ChangeRes(int chMode) { Form1 t = new Form1(); long RetVal = 0; DEVMODE dm = new DEVMODE(); dm.dmSize = (short)Marshal.SizeOf(typeof(DEVMODE)); if (chMode == 1) { dm.dmPelsWidth = 1600; dm.dmPelsHeight = 1024; dm.dmDisplayFrequency = 85; } else if (chMode == 2) { dm.dmPelsWidth = 1024; dm.dmPel