?
Solved

Making program startup w/system

Posted on 1998-11-02
4
Medium Priority
?
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
gencross earned 80 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
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…
Suggested Courses

800 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