Solved

Making program startup w/system

Posted on 1998-11-02
4
151 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now