When your application exits, it should remove the task bar icon. Without
knowing how you are adding it, exactly, I can't tell you how to remove it.
If spb Pocket Plus is using TerminateProcess(), I don't know of any way to
clean up after that. You might try a Finally clause in a Try block in the
Main routine of your application or something of that sort...
Paul T.
"Andrew Nugged" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> yes, on close message my program follows this.close() and other steps
> and minimizing byself with this.Hide() and returns Cancel event, but,
> for example, SPB Pocket Plus tries to close and see so app is minimized
> and then do gracefull, peaceful, freindly, mmm... killing...
>
> Anyway - if such kill is unavoided, how correctly to take back
> NotifyIcon from tray& (to be correct: only that's icon empy but busy
> space, icon image byselfs goes out from memory with app as resourse)..
>
> Cause after such killing when I run my app again - it's icon appears on
> one empty place to left in tray ("lost" empty space from previous
> kill)...
>
> Any suggestions?
>
|