Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i auto show the notify icon in system status bar after OS start Or restart???
Please help me.....
Posted
Updated 6-Dec-11 21:19pm
v2
Comments
Sergey Alexandrovich Kryukov 18-Apr-12 13:07pm    
Windows or something else? No, "VB.NET" does not assume Windows. Please tag the platform.
--SA
Sergey Alexandrovich Kryukov 18-Apr-12 13:26pm    
Status of what? You cannot show the status of OS, because it is the same. Please see my answer.
--SA

1 solution

As all of your software does not exist before OS is started or restarted, and because there is no difference between "started" and "restarted", the question is reduced to the one: how to run some application on OS startup. The status you can show will be some initial status, always the same on startup.

If this is Windows (please see my question; you did not specify it), register the application to be run automatically, at the Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run


You can work with the Registry using the class Microsoft.Win32.Registry, please see:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry%28v=vs.100%29.aspx[^].

You can also develop a Windows Service with the startup mode "Automatic", so the application will be started by the service controller. Please see:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.100%29.aspx[^].

You should remember that you cannot run any UI in a Windows Service. You still need to start some UI application which can communicate with the service. You did not explain us your goal, so it's hard to recommend anything certain.

—SA
 
Share this answer
 
Comments
ProEnggSoft 18-Apr-12 22:51pm    
Good answer. 5!
Sergey Alexandrovich Kryukov 19-Apr-12 0:15am    
Thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900