|
-
Dec 27th, 2005, 11:25 PM
#1
Thread Starter
Lively Member
Load on startup and icon on system tray
I want a program I made to be running in the background from startup (option set by user) and have an icon in the system tray.
Can anybody help me with those two things?
Thanks!
-
Dec 27th, 2005, 11:29 PM
#2
Frenzied Member
Re: Load on startup and icon on system tray
having an icon on the system tray has been discussed more than once. do a search and u'll come with lots of answers.
running in the background needs u to use some api calls. have a look at the api guide at http://www.mentalis.org
loading on startup can have different approaches. one is to put a link in the programs>startup and another is to put a link in the registry at HKCU/software/microsoft/windows/currentversion/run
-
Dec 27th, 2005, 11:31 PM
#3
Member
Re: Load on startup and icon on system tray
I have left the code for api a think 3 or post ago, can you search, if you have question ask me
"Oportunity is never lost, just found by someone else..."
-
Dec 27th, 2005, 11:33 PM
#4
Re: Load on startup and icon on system tray
This should help with the systray
http://vbforums.com/attachment.php?attachmentid=37005
Search the forums for startup, and you should get a lot of hits, as it's been discussed even more than the system tray. You can even get a system tray icon with a pop-up menu in it.
-
Dec 27th, 2005, 11:40 PM
#5
New Member
Re: Load on startup and icon on system tray
Here you got just copy and paste it. I think this is dglienna code that he gave me on here.A couple of weeks ago.
VB Code:
Private Sub Form_Load()
'Add the program to regedit. So it runs each time the computer restarts.
Dim sAppEXE As String
sAppEXE = App.Path & IIf(Right$(App.Path, 1) = "\", "", "\") & App.EXEName & ".exe"
SaveSettingString HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Run", App.Title, Chr$(34) & sAppEXE & Chr$(34)
End Sub
Gmail Invites Private Messages me your email
"A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty"(Winston Churchill).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|