Hi,
Try this: in the Form_Resize event...
The Shell_NotifyIcon calls just give the impression of "restoring from the tray to an app" and minimising to the tray.Code:select case form.windowstate case vbMinimised form.showintaskbar = false Shell_NotifyIcon NIM_ADD, nid case vbNormal form.showintaskbar = true Shell_NotifyIcon NIM_DELETE, nid end select
Maybe this works? Hope it helps...
DJ




Reply With Quote