msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I've lost my messagebeep!

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Paolo



Joined: 04 Oct 2007
Posts: 2

PostPosted: Sun Jul 23, 2006 8:52 pm    Post subject: I've lost my messagebeep! Reply with quote

Hi,

I'm doing a simple API function call and I've suddenly one of my beeps!
The code is standard as follows, but when I call the function, I get
nothing. Both produce nothing:

Call MessageBeep(MB_ICONQUESTION)
Call MessageBeep(&H20&)

But If I use any other constant or hexadecimal, I get the appropriate
beep. Help!

Thanks in advance,
Paolo

I don't check this e-mail, only paolo@NOSPAMcornacchia.net, removing
the NOSPAM.

Public Declare Function MessageBeep _
Lib "user32" (ByVal wType As Long) As Long

Public Const MB_ICONASTERISK As Long = &H40&
Public Const MB_ICONEXCLAMATION As Long = &H30&
Public Const MB_ICONQUESTION As Long = &H20&
Public Const MB_ICONINFORMATION As Long = MB_ICONASTERISK
Public Const MB_ICONHAND As Long = &H10&

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Dmitriy Antonov



Joined: 04 Oct 2007
Posts: 431

PostPosted: Mon Jul 24, 2006 12:55 am    Post subject: Re: I've lost my messagebeep! Reply with quote

Go to Control Panel -> Sounds And Audio Devices and check whether you have
any sound file assigned to "Question" event (it is set to "none" on mine -
maybe it is default value)

Dmitriy.


"Paolo" wrote in message @i3g2000cwc.googlegroups.com...
> Hi,
>
> I'm doing a simple API function call and I've suddenly one of my beeps!
> The code is standard as follows, but when I call the function, I get
> nothing. Both produce nothing:
>
> Call MessageBeep(MB_ICONQUESTION)
> Call MessageBeep(&H20&)
>
> But If I use any other constant or hexadecimal, I get the appropriate
> beep. Help!
>
> Thanks in advance,
> Paolo
>
> I don't check this e-mail, only paolo@NOSPAMcornacchia.net, removing
> the NOSPAM.
>
> Public Declare Function MessageBeep _
> Lib "user32" (ByVal wType As Long) As Long
>
> Public Const MB_ICONASTERISK As Long = &H40&
> Public Const MB_ICONEXCLAMATION As Long = &H30&
> Public Const MB_ICONQUESTION As Long = &H20&
> Public Const MB_ICONINFORMATION As Long = MB_ICONASTERISK
> Public Const MB_ICONHAND As Long = &H10&
>
Back to top
View user's profile Send private message
Paolo



Joined: 04 Oct 2007
Posts: 2

PostPosted: Mon Jul 24, 2006 3:34 am    Post subject: Re: I've lost my messagebeep! Reply with quote

Hi Dmitriy,

No I don't. Any other ideas?

Paolo

I don't check this e-mail, only paolo@NOSPAMcornacchia.net, removing
the NOSPAM.

Dmitriy Antonov wrote:
> Go to Control Panel -> Sounds And Audio Devices and check whether you have
> any sound file assigned to "Question" event (it is set to "none" on mine -
> maybe it is default value)
>
> Dmitriy.
>
>
> "Paolo" wrote in message
> @i3g2000cwc.googlegroups.com...
> > Hi,
> >
> > I'm doing a simple API function call and I've suddenly one of my beeps!
> > The code is standard as follows, but when I call the function, I get
> > nothing. Both produce nothing:
> >
> > Call MessageBeep(MB_ICONQUESTION)
> > Call MessageBeep(&H20&)
> >
> > But If I use any other constant or hexadecimal, I get the appropriate
> > beep. Help!
> >
> > Thanks in advance,
> > Paolo
> >
> > I don't check this e-mail, only paolo@NOSPAMcornacchia.net, removing
> > the NOSPAM.
> >
> > Public Declare Function MessageBeep _
> > Lib "user32" (ByVal wType As Long) As Long
> >
> > Public Const MB_ICONASTERISK As Long = &H40&
> > Public Const MB_ICONEXCLAMATION As Long = &H30&
> > Public Const MB_ICONQUESTION As Long = &H20&
> > Public Const MB_ICONINFORMATION As Long = MB_ICONASTERISK
> > Public Const MB_ICONHAND As Long = &H10&
> >

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Lost posting I posted a question here yesterday and it still hasn't shown up. does anyone know what could happen to it?

DLL Registration Lost in VB6 I have a DLL writted in C++ by a third party I am using in VB6 SP5. After I run the program about 6 time in the IDE, the CLSID of the DLL is lost by the IDE and on screen piece becomes a picturebox. Starting the IDE over again fixes the problem. The compi

How do you find out why a form lost the focus? How do you find out why a form lost the focus? I am trying to set up a data-entry interface that prevents keystrokes being sent to another program in the event of a stolen focus. This is to at least do my bit to counteract the Windows bug that shifts the

Problem with Events (lost focus) What is the proper way to handle events? I have several text boxes (inches, cm, points etc) and would like to be able to key a value in one of them and have the number converted and placed in the other boxes. The problem is that when the program places th

Lost focus event with MDI child Hi all, I'm sure i've seen this discussed somewhere but can't find the thread and i need a solution. I have an MDI application and need to run a function when the user moves focus away from a child form. In particular, clicking a button on a toolbar on th
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group