A way to disable this sound or disable any sound in my App?
Code:[blue]
If Not IsNumeric(txtSampleNum) Then
MsgBox "Only Integers.", ,""
Exit Sub
End If
[/blue]
Printable View
A way to disable this sound or disable any sound in my App?
Code:[blue]
If Not IsNumeric(txtSampleNum) Then
MsgBox "Only Integers.", ,""
Exit Sub
End If
[/blue]
The easiest way is to use the Question Mark icon, it doesn;t have a sound set to it.
Or you could use the msg box in my sig and disable the sound sectionCode:Call MsgBox("asd", vbQuestion, App.Title)
The user could always have set a sound for the Question msgbox though in control panel. The custom form is probably the best way to go. The sound is a Windows thing and you'd have to mute the system sound which a user may not like.
Yes maybe a custom form message is the way to go.
Well that shouldn't use any sounds because your using no icon.Quote:
Originally Posted by CVDpr
These sounds are set by Windows. If you look in Control Panel - Sounds or Multimedia you can set different sounds for different operations. There is a Question sound longwolf so vbQuestion will only be silent if someone hasn't set a sound to it.
The ones that don't use sounds are vbExclamation and vbInformation. There is an Exclamation in sounds but it doesn't sound using vbExclamation.
Even if you use MsgBox "Only Integers.",0 ,"" zero is just an OK button with no icon. If you have a sound set for Default sound then that sound will play.
If you don't want any sounds at all then your better of making a Form that acts as a MsgBox. ;)
Well that shouldn't use any sounds because your using no icon.Quote:
Originally Posted by CVDpr
These sounds are set by Windows. If you look in Control Panel - Sounds or Multimedia you can set different sounds for different operations. There is a Question sound longwolf so vbQuestion will only be silent if someone hasn't set a sound to it.
The ones that don't use sounds are vbExclamation and vbInformation. There is an Exclamation in sounds but it doesn't sound using vbExclamation.
Even if you use MsgBox "Only Integers.",0 ,"" zero is just an OK button with no icon. If you have a sound set for Default sound then that sound will play.
If you don't want any sounds at all then your better of making a Form that acts as a MsgBox. ;)
Thanks for repeating everything that was already said. and exclamation DOES have a sound. As does the MsgBox he's using.
I have XP and have not changed the sounds.Quote:
Originally Posted by Keithuk
I get no sound with the question.
I get sounds with the rest.
Even No Icon gives a Donk.
But that just makes the point that the surest method is a custom msg box.
Yes I realised after I had posted that MsgBox "Only Integers.", ,"" would still have a sound because someone had set a sound to Default sound which I had said. I tried to correct it but my connection was working that slow it wouldn't allow me.Quote:
Originally Posted by danecook21
Well I have Win98SE I haven't had a chance of trying this on WinXP yet.Quote:
Originally Posted by longwolf
I get a sound if I set a sound to Question. I don't get a Donk even with no icon unless I set a sound to Default sound.
Yes vbQuestion will sound if a sound it set to it.Quote:
Originally Posted by longwolf
Just make your own MsgBox Form. ;)
In most cases there is going to be a sound for Default. Why are you on Win98 anyway? :P
I stayed with win98 till I finally managed to blow out my old comp.Quote:
Originally Posted by danecook21
Why pay for (or steal) a new OS when the old one works for you?
That's about as pointless as me asking why you're using VB6. :rolleyes:Quote:
Originally Posted by danecook21
After all, they were both developed about the same time.
Not really, VB6 is just a development tool. Windows 98 is the operating system and it is very limiting. XP is so much better. and of course now there is Vista and Windows 7 in the works.Quote:
Originally Posted by CDRIVE
I mean if it works for you great. I'm just surprised that a developer on here still uses it for a primary system. I mean one huge thing would be security. Plus newer software tends not to work with it.
I'm not aware of any limitation your talking about.
As for security, the only secure system has no nic or modem, is locked in a bank vault and surrounded by guards.
Come to think of it, i'm not sure you could trust the guards.
I think the real point is that different operating systems have different behaviors. If one is writing code that can be used on older operating systems, then knowing the behaviors is a big plus. I personally have the following systems on my pc: 95, 98, ME, NT4, 2K, XP. Vista can wait ;)Quote:
Originally Posted by danecook21
You got all of those on one comp?Quote:
Originally Posted by LaVolpe
You must be sharing partitions.
Nope. Using Microsoft's free Virtual PC. But you gotta have the installation disks to the other o/s you want to load -- Win95 was a bear, but the rest were easy enough.Quote:
Originally Posted by longwolf
Edited: While typing this, I am currently updating Win2K with several patches from Microsoft, even though my primary/running system is XP.
VPC is handy, but I only use it because this cheap laptop won't let me make partitions :)
Don't ask this is a long story. :sick:Quote:
Originally Posted by danecook21
I've actually had another hard drive this week and its taken seven attempts to get WinXP to install. Otherwise I get loads of blue screen errors and it crashes. ;)
Keith, is it possible that the problem is with XP not working well with theQuote:
Originally Posted by Keithuk
W98 BIOS chip?
I'm afraid not Chris. I bought WinXP 2002 4 years ago and installed it on my old hard drive without a problem. I bought a new hard drive a couple of years ago and it wouldn't install at all, the BIOS is exactly the same Award 4.60PGA. I had another drive last week and that kept on throwing up the blue screen of death errors. I kept on trying different thing then I decided when it asks if you want to do a full NTFS format which I did but after the format got to 100% I get the error again and there is nothing wrong with the drive. So I went for a Quick format I went for quick and it started to install.Quote:
Originally Posted by CDRIVE
I know this isn't a VB problem so I'm sorry if I keep talking about it, but people ask. ;)