load form at startup

How to run a program durring windows startup

Page 1 of 1

5 Replies - 5361 Views - Last Post: 31 December 2007 - 11:47 PM Rate Topic: -----

#1 rookieLP  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 01-September 07

load form at startup

Posted 31 December 2007 - 02:49 PM

after windows startup,how do i make my form load?????
Is This A Good Question/Topic? 0
  • +

Replies To: load form at startup

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: load form at startup

Posted 31 December 2007 - 03:02 PM

Put a shortcut to the EXE in the StartUp folder found on your All Programs menu found on the Start button.

Start -> All Programs -> StartUp

Now when Windows boots it will start your application.
Was This Post Helpful? 0
  • +
  • -

#3 benpap  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 47
  • Joined: 24-November 07

Re: load form at startup

Posted 31 December 2007 - 06:10 PM

Wouldn't it be better to make something so the application adds itself to the startup registry? :blink: I would appreciate to learn doing that.
Was This Post Helpful? 0
  • +
  • -

#4 rookieLP  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 01-September 07

Re: load form at startup

Posted 31 December 2007 - 10:39 PM

View Postbenpap, on 31 Dec, 2007 - 06:10 PM, said:

Wouldn't it be better to make something so the application adds itself to the startup registry? :blink: I would appreciate to learn doing that.

thats wat i was tinkin....
will try the startup procedure
Thanx
Was This Post Helpful? 0
  • +
  • -

#5 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: load form at startup

Posted 31 December 2007 - 11:42 PM

Either way will work equally well and both are fairly easy to implement. You could have your installation add a shortcut to the startup folder or just add a new registry entry.

You will need to add a registry entry to the following key for programs to startup during windows bootup.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Was This Post Helpful? 0
  • +
  • -

#6 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: load form at startup

Posted 31 December 2007 - 11:47 PM

Quote

Wouldn't it be better to make something so the application adds itself to the startup registry?

Add your App to this Registry Key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

To add it to a user specific startup list, use HKEY_CURRENT_USER/HKEY_USERS instead.

EDIT:
TODO : Improve Typing Speed :D
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1