Hi Dustin,
Well, here's the issue. It is definitely the WaitWindow that is causing the beep. I know this because if I remove the calls to WaitWindow it works ok. However, we call WaitWindow in utility class but, if the code is the form itself (as in Edhy's example), then no problems, e.g.
This doesn't beep:
Private Sub PopulateGrids()
Me.WaitWindow1.Message = "Please Wait. Refreshing Data.."
Me.BoOTA1.RefreshBO()
Me.BoOTY1.RefreshBO()
Me.WaitWindow1.HideWaitWindow()
End Sub
But this does:
Private Sub PopulateGrids()
clsFU.ShowTheWaitWindow(Me.WaitWindow1)
Me.BoOTA1.RefreshBO()
Me.BoOTY1.RefreshBO()
clsFU.HideTheWaitWindow(Me.WaitWindow1)
End Sub
The utility class code is:
#Region " Handle Wait Windows "
Public Shared Sub ShowTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow)
' Show we are doing something using default mesages
ShowTheWaitWindow(WaitWindow, "PleaseWait", "RefreshingData")
End Sub
Public Shared Sub ShowTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow, _
ByVal WaitMessageLocKey As String, _
ByVal ReasonMessageLocKey As String)
' Show we are doing something
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
Waitwindow.ShowWaitWindow(clsLOC.Localise(WaitMessageLocKey), _
clsLOC.Localise(ReasonMessageLocKey), _
MicroFour.StrataFrame.Messaging.MessagingCardinalPosition.Center)
End Sub
Public Shared Sub HideTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow)
' The refresh is over - hide the wait window
System.Windows.Forms.Cursor.Current = Cursors.Default
Waitwindow.HideWaitWindow()
End Sub
#End Region
We use DevExpress for our UI - could this be influencing things in anyway?
Cheers, Peter