private void aboutForm_Click(object sender, EventArgs e) { About newAbout = new About(); newAbout.Show(); }
private static IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { // Check if a System Command has been executed if (msg == WM_SYSCOMMAND) { // Execute the appropriate code for the System Menu item that was clicked switch (wParam.ToInt32()) { case AboutSysMenuID: var about = new About(); about.Show(); about.Owner = Application.Current.MainWindow; // close this window when main window closes handled = true; break; } } return IntPtr.Zero; }