VB form loading automatically


Is it possible for a VB project/form to load automatically once the computer is turned on,
i.e. is it possible for the form to load without having to start VB.

If this is possible how is it done?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

  It is possible.  You have to make exe of the project.  In the Start-> Programs -> Startup
 add the short cut pointing to the project exe.  
When the computer is on it will run the project
Richie_SimonettiIT OperationsCommented:
What you are trying to get?
Do you need to see the code only? if so, just open it with notepad:
create a shortcut in Start menu:

"notepad.exe C:\myprjects\form1.frm"
Or if you wish to directly open a project inside Visual Basic. ( Without the need to run Visual Basic first )

Just create a shortcut which will point to your project or form file.

Start-> Programs -> Startup.
Rightclick -> Create Shortcut
Under general tab set the name of the shortcut
Under shortcut tab set the target to your .vbp or .frm file   :    "C:\VBApps\App1\Project1.vbp"

Try double clicking on it, and if it works it will allways load on startup.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

I don't quite understand

Load the frm from exe? from file?

Without compile, you won't be able run.
Am I missing something?
Richie_SimonettiIT OperationsCommented:
I think we are misunderstanding each other:
It is not so clear what  Reachtabhair try to do, hence my first comment. It appears like he/she want to run form1 without complile or without using VB IDE, i don't know.
More details would be nice as stated earlier.
ReachtabhairAuthor Commented:
Hi lads

I tried addind a shortcut from startup but I keep getting an error saying 'This program has performed an illegel operation and will be shut down'

The details describe the error as 'Explorer casused an invalid page fault module shell32.dll at 0167:7cbcf19'

All this makes no sense to me, have ye got any ideas?

Also in Programs--> there is a 'shortcut to Startup" !!!???

This opens the startup folder.
Richie_SimonettiIT OperationsCommented:
But, please, say what is the REAL program in first place and why do you need to o`pen form without VB
ReachtabhairAuthor Commented:
Basically what I'm trying to do is when the computer is started (without having to ever touch the mouse or keyboard) the form for my project will automatically appear on the screen, as if by magic.  No hands!!!!!!
ReachtabhairAuthor Commented:
The program is gonna be used by a blind person and using a mouse and a keyboard just isnt gonna work, the program scans an image and reads it back to the user all voice recognised controls.

That why i'd like it to automatically startup without having to navigate through programs files anf folders etc.
I still don't understand the question

>>Basically what I'm trying to do is when the computer is started (without having to ever touch the mouse or keyboard) the form for my project will automatically appear on the screen, as if by magic.  No hands!!!!!!

>>The program is gonna be used by a blind person

Then why you need to start the form?

Just program your app as service and run as service


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If you want to run your app after user login

You can use autologin and put you app into startup folder

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.