Example #1
0
        private void btn_Getmessage_Click(object sender, EventArgs e)
        {
            HappyBirthday hb = new HappyBirthday();

            MessageBox.Show(hb.getmessage("Happy Birthday!"));
            this.Close();
        }
Example #2
0
        private void btn_getmessage_Click(object sender, EventArgs e)
        {
            HappyBirthday hb = new HappyBirthday();

            MessageBox.Show("Happy Birthday " + Fname.Text + " " + Lname.Text);
        }