M
mp
I have 3 buttons on a form (btnRead, btnSave, btnUpdate)
3 identical _click events (see below)
the read button fires it's click event the other two don't
any thoughts of what could cause that?
i'm trying to do a mvps pattern
so the buttons are in the form in the view layer
setting aside for a moment why i'm not getting the events caught by the
presentation layer yet,
I don't see why only one button appears to be event firing it's own click
event
the other buttons appear to work on the ui (they take focus and change color
when clicked)
private void btnRead_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
private void btnSave_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
private void btnUpdate_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
I'm mystified (as usual)
thanks
mark
3 identical _click events (see below)
the read button fires it's click event the other two don't
any thoughts of what could cause that?
i'm trying to do a mvps pattern
so the buttons are in the form in the view layer
setting aside for a moment why i'm not getting the events caught by the
presentation layer yet,
I don't see why only one button appears to be event firing it's own click
event
the other buttons appear to work on the ui (they take focus and change color
when clicked)
private void btnRead_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
private void btnSave_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
private void btnUpdate_Click(object sender, EventArgs e)
{
Debug.Print("btnclick " + sender.ToString());
MessageBox.Show("btnclick " + sender.ToString());
}
I'm mystified (as usual)
thanks
mark