Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Bug: Ping sound in custum control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug: Ping sound in custum control

 Post Reply Post Reply
Author
Message
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post Topic: Bug: Ping sound in custum control
    Posted: 26 March 2005 at 6:09pm

when using a vb TextBox as a custum control and hitting return key the windows xp ping sound is played

Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2005 at 6:52pm

Private Sub Text1_KeyPress(KeyAscii As Integer) 
   If KeyAscii = vbKeyReturn Then
      KeyAscii = 0
   End If
End Sub

Back to Top
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 10:56am
ok that unproductive code did it !  
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 12:52pm

unproductive code?

this is a very widely-known problem with VB, it has nothing to do with CommandBars... if you had taken 30 seconds to do a simple search in Google you would have found out the same.

http://groups-beta.google.com/groups?q=textbox+beep+vb

Back to Top
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2005 at 3:12pm

excuse me,

unproductive in this context means you are force to produce some kind of code that isn't necessary.

the problem maybe the lifecycle of CommandBar, or CommandBar reintroduce it back into VB6? I don't know CommandBar well enough I'm just a the component consumer, so this problem should not be visible to the consumer !

but I also think that CommandBar has its potential in some next version...  

 

 

Back to Top
Devin Dazzle View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Denmark
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Devin Dazzle Quote  Post ReplyReply Direct Link To This Post Posted: 28 March 2005 at 8:45am
It is actually not a bug in the commandbars as gshawn pointed out. This is a problem that Visual Basic has had in a long time. So don't blame the commandbars. I do not have this problem.
Best Regards
Kim Pedersen, vbCode Magician
http://www.vbcodemagician.dk
Back to Top
moskito66 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 March 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote moskito66 Quote  Post ReplyReply Direct Link To This Post Posted: 28 March 2005 at 2:59pm

I give you a better reason to blame CommandBar:

http://forum.codejock.com/forum_posts.asp?TID=1998&P N=1

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.