Article ID: 190523
Article Last Modified on 5/12/2003
Option Explicit
Private oWord As Object
Private Sub Form_Load()
Set oWord = CreateObject("Word.Application")
Set cSysTray1.TrayIcon = Me.Icon
cSysTray1.InTray = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
cSysTray1.InTray = False
Set oWord = Nothing
End Sub
Private Sub cSysTray1_MouseDblClick(Button As Integer, Id As Long)
oWord.Visible = True
End Sub
Option Explicit
Private oWord As Object
Private Sub Form_Load()
Set oWord = CreateObject("Word.Application")
Set cSysTray1.TrayIcon = Me.Icon
cSysTray1.InTray = True
Timer1.Enabled = False
Timer1.Interval = 10
End Sub
Private Sub Form_Unload(Cancel As Integer)
cSysTray1.InTray = False
Set oWord = Nothing
End Sub
Private Sub cSysTray1_MouseDblClick(Button As Integer, Id As Long)
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
oWord.Visible = True
End Sub
131056 PRB: Synch OLE Call Fails in Inter-Process/Thread SendMessage
176085 HOWTO: Use the Taskbar Notification Area Directly from Visual Basic 5.0
Keywords: kbprogramming kbautomation kbprb KB190523