Window hav to close while pressing enter, but it is redirecting to next page. provide a solution
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lakshmanan Sethu SankaranarayanPosted Feb 27, 2014, 5:16 AM
Bala MuruganPosted Feb 27, 2014, 5:12 AM
Abhijit PatilPosted Feb 27, 2014, 4:00 AM
you can write same code in key up event
hope it work.
Bala MuruganPosted Feb 27, 2014, 3:15 AM
Abhijit PatilPosted Feb 27, 2014, 2:31 AM
write the below code of keypress event.
if(e.KeyChar=Keys.Enter)
{
This.Close();
}
Hope it help you
Regards,
Abhijti patil
dotnetbyabhipatil.blogspot.in