see07
Regular
Hello!!
I want when a user click enter key in a Text Box, event Image Button Click be executed, Im using this code:
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
ImageButton1_Click(sender,e);
}
but when I compile my project Im receiving error CS1502 Argument 2 can not convert from System.EventArgs to System.UI.ImageClickEventArgs.
If I change Image Button for a Button and put this code:
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
Button2_Click(sender,e);
}
no one error is generated and script is working O.K.
What I need to change in first code to also with an Image Button script work O.K.?
Ill appreciate all your suggestions.
A.L.
I want when a user click enter key in a Text Box, event Image Button Click be executed, Im using this code:
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
ImageButton1_Click(sender,e);
}
but when I compile my project Im receiving error CS1502 Argument 2 can not convert from System.EventArgs to System.UI.ImageClickEventArgs.
If I change Image Button for a Button and put this code:
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
Button2_Click(sender,e);
}
no one error is generated and script is working O.K.
What I need to change in first code to also with an Image Button script work O.K.?
Ill appreciate all your suggestions.
A.L.