Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > load a form every time windows starts


Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2000, 11:45 AM
uandme72
Guest
 
Posts: n/a
Question load a form every time windows starts


how to load a form every time windows starts on booting? The options of putting the command line in win.ini, or putting the form's icon in startup folder are not desired. the user should not get to know that the form will load. it should be like any other window's dll/vxd, which load invisibly.

Reply With Quote
  #2  
Old 09-22-2000, 05:31 PM
cbrewer cbrewer is offline
Junior Contributor
 
Join Date: Aug 2000
Location: Florida
Posts: 163
Default Re: load a form every time windows starts

Drivers are not designed to be viewed on a form. If you dont want the user to see it, why are you using a form?

Chuck
Reply With Quote
  #3  
Old 09-22-2000, 06:49 PM
Derek Stone
Guest
 
Posts: n/a
Default Re: load a form every time windows starts

Could you put it in the registry?
I can tell you how if you think that would be acceptable.

-cl

Reply With Quote
  #4  
Old 09-23-2000, 10:54 AM
uandme72
Guest
 
Posts: n/a
Default Re: load a form every time windows starts

i do not want to load a driver. instead i wish to load an exe file, which is a logger program, to enable logging of activity on the computer, in a multiuser environment.
please help

Reply With Quote
  #5  
Old 09-23-2000, 10:58 AM
uandme72
Guest
 
Posts: n/a
Question load a form every time windows starts

it is acceptable to put it in registry. but it should be possible to so during the installation of the program itself. the installation program would be that provided by the setup wizard of VB itself.
If it is possible to put it in registry, like all commercial programs do during installation, please help me.


Reply With Quote
  #6  
Old 09-23-2000, 11:58 AM
Derek Stone
Guest
 
Posts: n/a
Default Re: load a form every time windows starts

Just add a string to:
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunServices
-or-
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun

The string name should be the name or your program and the string value should be the location of the program.
Check out any VB site to find out how to use the registry through VB.
Also, it will be quite a pain to do so through the setup program provided with VB (Package & Deployment Wizard), although it isn't impossible.
To see how to do it using the Package & Deployment Wizard go to:
<A HREF="http://vb-world.net/misc/customsetup/" target="_new">http://vb-world.net/misc/customsetup/</A>
As an alternative you could add the string to the registry the first time your application starts instead of at setup time.
Good Luck

-cl

Reply With Quote
  #7  
Old 09-28-2000, 05:46 AM
uandme72
Guest
 
Posts: n/a
Default Re: load a form every time windows starts

the site you have mentioned - to look for custom setup through VB Wizard, does not describe the use of wizard to modify registry during the setup.
do you know anyother site which has details on how to use VB setup wizard to have a distribution which automatically modifies the registry as i wish, and creates icons which i want, and not what it is pre programmed to create.


Reply With Quote
  #8  
Old 09-28-2000, 07:09 AM
Grimfort Grimfort is offline
Centurion
 
Join Date: Sep 2000
Location: England
Posts: 133
Default Re: load a form every time windows starts

If you were gonna put it in the registry a better place to put it rather then in services is

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun

It is like adding it to the start menu but the user does not see it.

Grimfort


Reply With Quote
  #9  
Old 09-28-2000, 11:45 AM
NoahBody NoahBody is offline
Senior Contributor
 
Join Date: Apr 2000
Location: Edge City, CA
Posts: 799
Default Re: load a form every time windows starts

Sir,
When you use the Wizard to build an installation, it is actually creating a new vb project called setup1.vbp.

Do a Find File on it from the start menu. Then you can modify that project to do anything you want. Then just make a new executable to replace the setup.exe that it originally made.

Hope This Helps,
->Noah

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->