Putting a custom icon into the form caption bar - minimize to tray
Hi!
I wonder how this can be done? I've just made a very small programmer's utility for generating Property Procedure listings from a list of variables, and I wonder how I can keep this form handy at all times. A tray icon could be handy. I already have the trayicon class and it's working, but I need to hide the form from a custom command button procedure instead of by minimizing.
Thanks in advance,
Stas
That's not exactly what I meant
Hi!
Thanks for the tip!
Actually, I already have a tray icon class that does the work. However, the problem is that I have to minimize my application to the tray somehow. If I just minimize the form, I can hide it without a problem, but when I double-click the icon in the tray, I want the form to show up again, which is not possible (unless there is a method of showing the form after it has been minimized without clicking on the task bar icon).
I figured the best way would be to add a small button next to the minimize button near the form's X button. When the user clicks it, I hide the form and show the icon in the tray. When the user double-clicks the system tray icon, I delete the icon from the systray and show the form again.
I know this can be done with API, but I don't want to spend another day getting it done if there's a ready-made solution.
Thanks in advance,
Stas