as far as I know, the ToolTip area will adjust itself according to the text that you set. Maybe you didn't terminate the string, try terminate it using NULL char, like this

TrayIcon.szTip = TipsMsg & Chr(0) ' where TrayIcon is type NOTIFYICONDATA

second problem, you should response to the message WM_RBUTTONDOWN rather than WM_RBUTTONDBLCLK.




HTH

cksiow
http://vblib.virtualave.net - share our codes