N
Nevo
I've designed a form with a button. The button's action is "Rules and Custom
Code."
I've written code to simply display a messagebox when the button is clicked.
When I click the button, the code doesn't run. I don't understand why not.
Snippets of code:
<pre><code>
public void InternalStartup()
{
((ButtonEvent)EventManager.ControlEvents["btnSendEmail"]).Clicked += new
ClickedEventHandler(btnSendEmail_Clicked);
}
public void btnSendEmail_Clicked(object sender, ClickedEventArgs e)
{
// Write your code here.
MessageBox.Show("Sending email!");
}
</code></pre>
Why is my code not running when I fill out the form?
Code."
I've written code to simply display a messagebox when the button is clicked.
When I click the button, the code doesn't run. I don't understand why not.
Snippets of code:
<pre><code>
public void InternalStartup()
{
((ButtonEvent)EventManager.ControlEvents["btnSendEmail"]).Clicked += new
ClickedEventHandler(btnSendEmail_Clicked);
}
public void btnSendEmail_Clicked(object sender, ClickedEventArgs e)
{
// Write your code here.
MessageBox.Show("Sending email!");
}
</code></pre>
Why is my code not running when I fill out the form?