Solved

VB form loading automatically

Posted on 2003-12-02
13
735 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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 100 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

705 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