/// <summary> /// click event for the profile button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnProfile_Click(object sender, EventArgs e) { //call form's constructor and assign variable myProfileForm profile = new myProfileForm(); //display profile form profile.ShowDialog(); }