Label click event after pressing enter on textbox c#
<p>I have a winforms sign in in c# that I would like to have it try login after pressing the enter key on the password box.</p>

<p>I have a username textbox, password textbox, and a label for my submit.</p>

<p>I have this for my enter keypress.</p>

<pre><code>    private void password_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == (char)13)
        {

            signinbutton.Click();    //I was thinking something like this would work                        
        }
    }
</code></pre>

<p>Any ideas would be appreciated thanks.</p>
