Solved

Making program startup w/system

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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