Solved

Making program startup w/system

Posted on 1998-11-02
4
152 Views
Last Modified: 2013-11-14
Hi All,

How can I make my program "startup" (and maybe minimize itself) when the user boots their computer in the morning?
I (first) want to install the program, (second) want the program to start, (third) check a file for updates (a company news file -- that part I can do), and then notify the user with a message if there is new "news" ... any ideas?  As always, I need code!
0
Comment
Question by:KIRK50
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
gencross earned 20 total points
ID: 1442985
When you install your program put a shortcut in the Startup folder.

In your Sub Main or form Load event set the Windowstate property to 1 = Minimized.

When windows starts in will run your program, and the form will be minimized to the taskbar.  You can then check news or whatever you want to do periodically and put up a message box or a modal form (form1.Show vbModal) centered on the screen when there is something new.

I hope this helps.
0
 

Author Comment

by:KIRK50
ID: 1442986
Hi Gencross,

Good answer, just need a little more detail.  How do I get the install program (VB6) to ensure a startup shortcut is installed?
Or do I have to prompt the user?  Thanks!
0
 
LVL 4

Expert Comment

by:gencross
ID: 1442987
I don't think you can install a shortcut to the desktop with the VB6 setup tool.  You will need something Like InstallShield Express.  That is the easiest one to work with.  It is simple to work with and I believe it will allow you to do create a desktop shortcut.  I mainly work with InstallShield 5.1 Pro, it is very powerful if you have the time to learn how to use it.
0
 

Author Comment

by:KIRK50
ID: 1442988
Thanks Gencross, I will try to get a copy of InstallShield one of these days, and use it with my VB6.  Thanks a lot!!!

Kirk Simpson
Tech Writer/VB Programmer
Fort Lauderdale, FL


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now