|
-
Sep 3rd, 2001, 03:40 PM
#1
Thread Starter
Lively Member
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....
-
Sep 3rd, 2001, 03:43 PM
#2
Member
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:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then KeyAscii = 0
End Sub
-
Sep 3rd, 2001, 03:43 PM
#3
Frenzied Member
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.
-
Sep 3rd, 2001, 03:45 PM
#4
Member
-
Sep 3rd, 2001, 03:50 PM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|