A REALLY tough question! 
Author Message
 A REALLY tough question!

I'm building a VB app that runs a Windows app (through the SHELL command).
These 2 apps should be the ONLY apps accessible to the user.  That means
no Program Manager, File Manager, DOS Prompt, etc.

Using the API function SetSystemModalWindow() would solve the task-switching
problem, however you cannot easily access the 2nd app, once you've locked
the 1st app.  Basically, I want to be able to access both apps on-screen
with the simple click of the mouse without having to close one first.

Thanks.



Tue, 19 May 1998 03:00:00 GMT  
 A REALLY tough question!


Quote:
>Date: Fri, 1 Dec 1995 18:31:39 GMT

>I'm building a VB app that runs a Windows app (through the SHELL command).
>These 2 apps should be the ONLY apps accessible to the user.  That means
>no Program Manager, File Manager, DOS Prompt, etc.

>Using the API function SetSystemModalWindow() would solve the task-switching
>problem, however you cannot easily access the 2nd app, once you've locked
>the 1st app.  Basically, I want to be able to access both apps on-screen
>with the simple click of the mouse without having to close one first.

>Thanks.

That's easy enough. Just designate one of the applications as the Windows
shell (under 3.x, haven't tried it in 95). with

shell=yourapp.exe

in system.ini. As long as neither program has the ability to run other
programs, you'll be fine. You can easily try this with Excel, or another
application.

you can use the ExitWindows API call to make your app either reboot the system
or relaunch Windows on exit.



Thu, 21 May 1998 03:00:00 GMT  
 A REALLY tough question!


Quote:
>I'm building a VB app that runs a Windows app (through the SHELL command).
>These 2 apps should be the ONLY apps accessible to the user.  That means
>no Program Manager, File Manager, DOS Prompt, etc.

>Using the API function SetSystemModalWindow() would solve the task-switching
>problem, however you cannot easily access the 2nd app, once you've locked
>the 1st app.  Basically, I want to be able to access both apps on-screen
>with the simple click of the mouse without having to close one first.

>Thanks.

I haven't tried this, but...
Try setting your VB app as the Windows shell (in the boot section of system.ini.
there should be a shell= line.)  That will start your app when Windows loads,
instead of Program Manager, effectively blocking the user from doing anything
else.  The only thing I don't know is whether you'll be able to start the other
app with a SHELL statement.

Lee Weiner

"The worst day I ever spent programming was better
 than the best day I ever spent playing golf."



Thu, 21 May 1998 03:00:00 GMT  
 A REALLY tough question!

Quote:

> I'm building a VB app that runs a Windows app (through the SHELL command).
> These 2 apps should be the ONLY apps accessible to the user.  That means
> no Program Manager, File Manager, DOS Prompt, etc.

> Using the API function SetSystemModalWindow() would solve the task-switching
> problem, however you cannot easily access the 2nd app, once you've locked
> the 1st app.  Basically, I want to be able to access both apps on-screen
> with the simple click of the mouse without having to close one first.

> Thanks.

I'm not 100% clear on EXACTLY what you want to do but it seems to me
that the solution is to go into your users system.ini file and in the
[boot] section enter

shell=(path\)<appname.exe>

(instead of shell=progman.exe)
where <appname.exe> is the name of your executable. This will mean that
Windows will load using your application instead of the Program manager
and shutting down your application will close Windows.
Hope this helps.
Ultan



Sun, 24 May 1998 03:00:00 GMT  
 A REALLY tough question!

Quote:

>> I'm building a VB app that runs a Windows app (through the SHELL command).
>> These 2 apps should be the ONLY apps accessible to the user.  That means
>> no Program Manager, File Manager, DOS Prompt, etc.

One way that I have done it in the past is to use FindWindow to enumerate all the open windows, and
then use ShowWindow to hide them.  This makes them invisible to the user (including program
manager).  They cannot task switch to them, and they do not show in the task list.

Peter Carson



Mon, 25 May 1998 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. REALLY TOUGH QUESTION

2. Really tough one

3. Really really stuck on this one. (QBasic Question)

4. This is a really really dumb question.

5. HELP - Really, really simple printer questions

6. Really, really stupid question.

7. Really, Really Horrible question about sprites

8. tough question for gurus!

9. Tough questions...

10. Mathmatical Genious Needed for this tough question

11. TOUGH Question - Late Bound COM objects and VB.NET

12. tough question for powerbasic

 

 
Powered by phpBB® Forum Software