private void button1_Click(object sender, EventArgs e) { MyMsgBox mymsgbox = new MyMsgBox(); mymsgbox.ShowMyMsgBox("Test Message1!!"); }