private void menuAttach_Click(object sender, EventArgs e) { // displays the PickWindow form as a modal window and retrieves the picked window PickWindow pw = new PickWindow(); pw.ShowDialog(this); if (pw.PickedWindow != IntPtr.Zero) { gamewindow = new GameWindow(pw.PickedWindow); } else { gamewindow = null; } labelGameWindow.Text = "Game window: " + (gamewindow != null ? gamewindow.ToString("X8") : "0"); }
private void menuAttach_Click(object sender, EventArgs e) { // displays the PickWindow form as a modal window and retrieves the picked window PickWindow pw = new PickWindow(); pw.ShowDialog(this); if (pw.PickedWindow != IntPtr.Zero) gamewindow = new GameWindow(pw.PickedWindow); else gamewindow = null; labelGameWindow.Text = "Game window: " + (gamewindow != null ? gamewindow.ToString("X8") : "0"); }