Welcome to Dream.In.Code
Become a VB Expert!

Join 149,908 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,199 people online right now. Registration is fast and FREE... Join Now!




load form at startup

 
Reply to this topicStart new topic

load form at startup, How to run a program durring windows startup

rookieLP
31 Dec, 2007 - 01:49 PM
Post #1

New D.I.C Head
*

Joined: 1 Sep, 2007
Posts: 26


My Contributions
after windows startup,how do i make my form load?????
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Load Form At Startup
31 Dec, 2007 - 02:02 PM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,316



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
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.
User is online!Profile CardPM
+Quote Post

benpap
RE: Load Form At Startup
31 Dec, 2007 - 05:10 PM
Post #3

New D.I.C Head
Group Icon

Joined: 24 Nov, 2007
Posts: 44


Dream Kudos: 100
My Contributions
Wouldn't it be better to make something so the application adds itself to the startup registry? blink.gif I would appreciate to learn doing that.
User is offlineProfile CardPM
+Quote Post

rookieLP
RE: Load Form At Startup
31 Dec, 2007 - 09:39 PM
Post #4

New D.I.C Head
*

Joined: 1 Sep, 2007
Posts: 26


My Contributions
QUOTE(benpap @ 31 Dec, 2007 - 06:10 PM) *

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

thats wat i was tinkin....
will try the startup procedure
Thanx

User is offlineProfile CardPM
+Quote Post

Jayman
RE: Load Form At Startup
31 Dec, 2007 - 10:42 PM
Post #5

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,316



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
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.
CODE
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run


User is online!Profile CardPM
+Quote Post

born2c0de
RE: Load Form At Startup
31 Dec, 2007 - 10:47 PM
Post #6

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
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 biggrin.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 01:29PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month