using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace ControlServer { public partial class Popup : Form { public Popup(string message) { InitializeComponent(); lblText.Text = message; } private void btnOk_MouseClick(object sender, MouseEventArgs e) { this.DialogResult = DialogResult.OK; // Form2에 이벤트 전달 this.Close(); } } }