?
Solved

VB form loading automatically

Posted on 2003-12-02
13
Medium Priority
?
737 Views
Last Modified: 2010-05-01

Hi

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?

0
Comment
Question by:Reachtabhair
[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
  • 5
  • 3
  • 3
  • +2
13 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 9858278
Hi,
  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
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9858522
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"
0
 
LVL 11

Expert Comment

by:dbrckovi
ID: 9858662
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:EDDYKT
ID: 9858902
I don't quite understand

?->
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9858907
Load the frm from exe? from file?

0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9858918
Without compile, you won't be able run.
Am I missing something?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9858957
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.
0
 

Author Comment

by:Reachtabhair
ID: 9858985
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.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9859009
But, please, say what is the REAL program in first place and why do you need to o`pen form without VB
0
 

Author Comment

by:Reachtabhair
ID: 9859042
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!!!!!!
0
 

Author Comment

by:Reachtabhair
ID: 9859091
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.
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 400 total points
ID: 9859205
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

http://vbwire.com/advanced/howto/service.asp
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9859216
If you want to run your app after user login

You can use autologin and put you app into startup folder

ie
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q97/5/97.asp&NoWebContent=1
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

764 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