Results 1 to 5 of 5

Thread: 2 questions...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109

    2 questions...

    ok, first question is, how do i stop a textbox from making the Beep noise when i press the enter key....

    this is a chat program, and when the user presses enter, it sends text to the chat, but i hate it when it makes the freakin beeps for every msg it sends.. how do i stop it from beeping?

    2nd question.. on the listview control... i have it set to smallicons... so its like a listbox, but with icons... but when items are removed.... the listbox doesnt refresh itself, and there's blank spaces, how do i have the listview refresh? listview.refresh doesnt work....

  2. #2

    Re: 2 questions...

    Originally posted by AlbafaN
    ok, first question is, how do i stop a textbox from making the Beep noise when i press the enter key....
    VB Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2.     If KeyAscii = 13 Then KeyAscii = 0
    3. End Sub

  3. #3
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    For question 1, in the KeyPress() event put

    If KeyAscii = 13 then
    KeyAscii = 0
    End If

    As for question 2, how are you removing items? Are you using the Remove method or are you just clearing the text?

    Greg
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

  4. #4

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    109
    ya, i forgot about the arrange property .... i figured it out like right after i posted the topic hehe

    and duh.. i should of known to change it to 0 ::sigh:: brain fart!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width