Esempio n. 1
0
        private void StartMonitor()
        {
            // this.Hide();

            _monitor = new MonitorFrm();
            RegMonitorEvent();
            _monitor.Show();

            //move the monitor window to 600,0
            Win32API.SetWindowPos(_monitor.Handle, IntPtr.Zero, 600, 0, 260, 150, 0);

            //minsize the main window.
            Win32API.SendMessage(this.Handle, Convert.ToInt32(Win32API.WindowMessages.WM_SYSCOMMAND), Convert.ToInt32(Win32API.WindowMenuMessage.SC_MINIMIZE), 0);
        }
Esempio n. 2
0
        private void StartMonitor()
        {
            // this.Hide();

            _monitor = new MonitorFrm();
            RegMonitorEvent();
            _monitor.Show();

            //move the monitor window to 600,0
            Win32API.SetWindowPos(_monitor.Handle, IntPtr.Zero, 600, 0, 260, 150, 0);

            //minsize the main window.
            Win32API.SendMessage(this.Handle, Convert.ToInt32(Win32API.WindowMessages.WM_SYSCOMMAND), Convert.ToInt32(Win32API.WindowMenuMessage.SC_MINIMIZE), 0);
        }