Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / System tray?

Author
Message
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 16th Mar 2005 09:20
Ive been looking arond the fourms for a way to minimize my program to the system tray, but I can't find a working link to anything that might help. I have found dll's that look like they would work, but the links to them don't work. SO would anyone know of a DLL or someway of doing it?

Just a programmer
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 16th Mar 2005 12:48
shell32.dll.
shell_notifyicon is the function
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 17th Mar 2005 10:29
Ok I have been messing around with the code to load the DLL but im getting a error.



It says Runtime error 9704-could not call DLL fuction at line 7.

So any ideas how I could fix this?

Just a programmer
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 17th Mar 2005 10:53
I got it to work i typed in this

and it recognised the dll
peace

David
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 17th Mar 2005 11:01
just tried it, seemed to work for a bit but then just goes bake to the editing window. I cant tell if it crashed or not. so how would I keep it in the system tray, now that it seems to work for just a bit.

Just a programmer
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 17th Mar 2005 11:21
are you trying to minimize to the system tray or the task bar?

these commands are for the task bar.

minimize window

maximize window

restore window

they do what they say.
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 17th Mar 2005 11:27
Im trying to minimize to the system tray, not the task bar.

Just a programmer
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 17th Mar 2005 12:02
minimizing to the system tray is very complicated. I can do it with vb6 but trying to convert it to dbp is not working. here is the code
with one line rem that I am having trouble with. everything works until the last call dll line. if anybody knows what to do I would appreciate it. have fun
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 17th Mar 2005 13:11
Ill look over the code, but I probably won't find out how to fix it. Thanks for the help

Just a programmer

Login to post a reply

Server time is: 2024-11-13 20:03:33
Your offset time is: 2024-11-13 20:03:33