Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Beep when pressing ENTER
Message
 
To
19/12/2007 11:40:22
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonesia
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01275860
Message ID:
01276641
Views:
22
Thanks for your reply Handi, that's exactly what I was missing.

Enmanuel

>>I've made a custom textbox control that selects the next control when I press the ENTER key but the computer beeps everytime I hit enter, How can I avoid this beep?
>>
>>TIA,
>>
>>Enmanuel
>
>Hi Enmanuel,
>
>put this code into your custom texbox control :
>
>
>protected override void OnKeyPress(KeyPressEventArgs e)
>{
>   if (e.KeyChar == (char)13)
>       e.Handled = true;
>   else
>       base.OnKeyPress(e);
>}
>
>
>Please let me know if it works :-)
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Previous
Reply
Map
View

Click here to load this message in the networking platform