"John" <(E-Mail Removed)> schrieb
> Sub ShowDesktopAlert(ByVal Caption As String, ByVal Msg As
> String)
> dalMain.Show(Caption & ":" & Msg, "Click here to go
> to contact record.")
> Application.DoEvents()
> End Sub
>
> End Module
Is dalMain a Form? If it is, replace
application.doevents
with
application.run(dalMain)
This makes the app close after dalMain has been closed. If it's not a
Form...(taken from their homepage it seems to be a component)..., you should
call Application.Run() without args. Then, call Application.ExitThread
whenever you want the app to close.
Armin
|