i've got a question concerning c# / windows ce / system tray icons:
- i add a notifyicon (from OpenNETCF)
- i minimize my window
- i want to use the notifyicon's "click" to restore the window
this doesn't seem to work...
the window doesn't get restored properly, no matter what i do.
i googled and found only one relevant hit:
the developer reported he had to use the following hack:
--- begin citation ---
Private Sub NotifyIcon1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.Mouse
Me.FormBorderStyle = FormBorderStyle.None
Me.FormBorderStyle = FormBorderStyle.FixedSingl
For some reason, you need to set FOrmBorderStyle to both NONE and FixedSingle. If you leave out the .none, nothing happens, if you leave out the FixedSingle, the window restores, but the minimize button in the upper-right wont work again <shrug>.
--- end citation ---
but even this hack doesn't work reliably - only every second try or so...
has anybody tried this before; is there a "proper" solution?