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
Solved

VB form loading automatically

Posted on 2003-12-02
13
733 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
  • 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 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