Click to See Complete Forum and Search --> : disabling beep sound when clicking Enter
Pirate
Nov 18th, 2002, 04:19 PM
once again hi :D
how can I disable beep sound when clicking Enter??
thanx
peet
Nov 18th, 2002, 04:20 PM
Originally posted by pirate
once again hi :D
how can I disable beep sound when clicking Enter??
thanx
what do you mean?
Pirate
Nov 18th, 2002, 04:25 PM
I'm using W XP .When I click Enter in the combobox after running the project , it sends beep sound.
by the way , you have a nice site;)
peet
Nov 18th, 2002, 04:39 PM
try something like this
Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
KeyAscii = 0
Exit Sub
End If
End Sub
works for vs6.0
:)
peet
Nov 18th, 2002, 04:39 PM
if you are refferring to the site in my sig, its not mine ;)
Pirate
Nov 18th, 2002, 05:50 PM
this will never work in VB.NET.:p
Pirate
Nov 19th, 2002, 04:44 PM
so now it's resolved
for benefit of others for benefit of others (http://www.vb2themax.com/Item.asp?PageID=TipBank&Cat=200&ID=322) :D
peet
Nov 19th, 2002, 05:33 PM
looks very much like my sample... only they trap all keypresses for the entire form... :)
Kenbuddy
Jan 15th, 2007, 07:38 PM
Just FYI, DevComponents has a custom combobox control sold with their DotNetBar suite that has a "PreventEnterBeep" property. I haven't used it yet, but I can only assume it works...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.