PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Pressing Enter on a button in a user control
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Pressing Enter on a button in a user control
![]() |
Pressing Enter on a button in a user control |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
If I press 'ENTER', when the focus is on a button in a form, the buttons Click event fires but pressing 'ENTER' when the focus is on a button in a user control doesn't fire the Click event of the button. Why? Pressing <SPACE BAR> works fine with both. Help!!!! Regards, Pondala Vijaya Krishna. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hello,
"Vijayakrishna Pondala" <pvijkris@hotmail.com> schrieb: > If I press 'ENTER', when the focus is on a button in a form, > the buttons Click event fires but pressing 'ENTER' when the > focus is on a button in a user control doesn't fire the Click > event of the button. Why? Pressing <SPACE BAR> > works fine with both. I am not able to provide a solution but I am able to reproduce the problem using .NET 1.0. Which version of .NET do you use? Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet |
|
|
|
#3 |
|
Guest
Posts: n/a
|
I am using version 1.0.
I am able to solve the problem by handling the KeyPress event on the buttons in user control, but just wanted to know why this happens. Thanks, Vijaya Krishna Pondala. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

