Textbox Beep

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Textbox Beep

    I'm currently working on a project in vb6. I have a textbox in which the user is supposed to enter his/her name and press enter. When i give my name and press enter a short beep is heard, but the program flow is good and every other thing is going as expected.
    I feel the beep sound is annoying and i want to avoid it.How do i do it?
    Does anyone know why do i get that beep sound?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    if you have not defined the beep sound, it must be from your system settings.

    Comment

    • vdraceil
      New Member
      • Jul 2007
      • 236

      #3
      I feel it seems like a kind of error beep.
      Anyway,Is there any way i could avoid it?

      Comment

      • 9815402440
        New Member
        • Oct 2007
        • 180

        #4
        hi
        on keypress of text box type following line
        keyascii = 0
        this will stop the beep sound

        regards
        manpreet singh dhillon hoshiarpur

        Comment

        • vdraceil
          New Member
          • Jul 2007
          • 236

          #5
          That wont work..i tried
          If i add 'keyascii = 0' in keypress event of the text box, it doesnt accept any keystrokes.

          Comment

          • Parul Bagadia
            New Member
            • Mar 2008
            • 188

            #6
            This beep sound comes in VB after we are done with some process; for ex. even if a message-box pops up that beep sound is heard.,so whenever user is done with entering his name , one process is done and beep sound is heard. I don't know how to turn it off but you can check the object-browser for that purpose, there every-properties and their all possible values are specified.

            Comment

            • EYE4U
              Banned
              New Member
              • Oct 2008
              • 76

              #7
              You cant stop the beep.
              But you can disable it by going to sound settings and then disable the default beep.
              In vb if you want to stop beeping you need to change the key like use tab instead of enter or any other key :)

              Regards
              ARUZ

              Comment

              • 9815402440
                New Member
                • Oct 2007
                • 180

                #8
                hi
                sorry for the wrong code.
                actually it is as follows
                if keyascii= vbkeyreturn then keyascii =0

                regards
                manpreet singh dhillon hoshiarpur

                Comment

                Working...