Clicking sound
2006-05May-12
When you call the Navigate2 method in the web browser control, the browser plays the "start navigation" sound. By default, that's a brief clicking sound. To avoid the sound you need to hide the control while calling Navigate2. As this causes a lot of flickering, you want to lock the form while the control is invisible. For ActiveX controls you need to use the LockWindowUpdate() API function.
DECLARE INTEGER
LockWindowUpdate IN USER32 INTEGER nHandle
llVisible = m.Browser.Visible
LockWindowUpdate(Thisform.HWnd)
Browser.Visible = .F.
Browser.Navigate2( m.tcTarget )
Browser.Visible = m.llVisible
LockWindowUpdate(0)
LockWindowUpdate(0)
to disable the lock.