Why won't PerformClick() work?

I'm trying to call a form and have it automatically click a button, but for some reason PerformClick won't work...  I've attached the form's code below.
public partial class frmTempDet : Form
        public frmTempDet(string monthYear, string cycle)
            txtMonthYear.Text = monthYear;
            cbCycle.Text = cycle;
        private void btnTempDet_Click(object sender, EventArgs e)

Open in new window

Who is Participating?
p_davisConnect With a Mentor Commented:
try putting that in the form load event instead of the constructor.

also, is there a click event tied to that button? i see the method, does the designer or do you somewhere do

btnTempDet.Click += new EventHandler......
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.