[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Making program startup w/system

Posted on 1998-11-02
4
Medium Priority
?
158 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

656 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