Solved

making a vb program start up on windows start up.

Posted on 1998-07-26
7
208 Views
Last Modified: 2010-05-03
i want my program to start up when windows starts up, and not let the user do anything thing with windows until the right password is entered. how can i do that?
0
Comment
Question by:jmharr
7 Comments
 

Author Comment

by:jmharr
ID: 1466766
oh also, it needs to disable the ctrl + alt + del keys and alt + tab or any of the other key liek that

0
 
LVL 4

Expert Comment

by:trkcorp
ID: 1466767
I am adding this comment because I want to see the answer and because I can't fully address the question... As for the Password part of your question, jmharr, it sounds like you want to create a dedicated PC that runs only your program.  If this is the case and you are on a fairly new release of Win 95 or better then I would enable the Users option on the system to force a User ID & Password. (You will have a users icon on your control panel if this is so.) Then you could use this API: ... Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long ... to get the UserID from within your program for security purposes.  To start your program automatically upon boot place a shortcut to it in the StartUp folder located within your Program folder... As for the rest of your question, I want to see the answer(s).

0
 

Expert Comment

by:stx
ID: 1466768
jmharr, a commonly overlooked aspect of windows is the win.ini
file.  Windows uses this for load information, adding several strings (i.e.:  run="c:\vb\jhmarr\pass.exe")
this could load your program.  And if the correct password is given to the program then it could allow the remaining loading of windows.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

Author Comment

by:jmharr
ID: 1466769
will that start up when windows does, and not load the shell (explorer.exe) until the password is right? I also need to know how to make a form display when ctrl + alt + del is pressed and the same with alt + tab
0
 

Accepted Solution

by:
wsanchez earned 90 total points
ID: 1466770
I'm not sure if windows will not continue loading while the password is not correct but you could "trap" ctrl+alt+del and alt+tab by intercepting it in the Form_keyPress. Use KeyAscii to do this.
0
 
LVL 39

Expert Comment

by:abel
ID: 1466771
Hi jmharr,

Lookup RunOnce in the registry. These programs are run BEFORE any other program loads! But when started, you'll have to put it in there again (it gets automatically deleted).
Ctrl-Alt-Del can be trapped. Lookup http://www.experts-exchange.com/topics/comp/lang/visualbasic/Q.10067913.
Alt-Tab can be intercepted by using either form_lostfocus or form_keydown.

Regards, Abel
0
 
LVL 39

Expert Comment

by:abel
ID: 1466772
More advanced is using the "Shell=explorer.exe" from the "[boot]" section of system.ini. Replacing that with your program will prevent explorer.exe to load and additionally it will prevent other apps to load. When your program exits, you should call explorer.exe to get the normal window-behaviour.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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.
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…
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…

828 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