General discussion

Locked

Preventing the use of the close button o

By techrepublic ·
I maintain a DOS based application across a large network & running NT workstations. Unfortunately, damage is often caused to the data in this application when a user closes the DOS window in which it runs.
I have managed to configure it to providean "End Task" warning box, but some users just carry on regardless and crash the session.
Does anyone know a way of either removing or disabling the 'X' close function in the top right of the toolbar?

Thanks in anticipation.

This conversation is currently closed to new comments.

24 total posts (Page 1 of 3)   01 | 02 | 03   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Preventing the use of the close button o

by SyscoKid In reply to Preventing the use of the ...

Don't know how to do that, but we have the exact same problem and our workaround is to modify the shortcut so program runs full-screen.

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

Poster rated this answer

Collapse -

Preventing the use of the close button o

by miked In reply to Preventing the use of the ...

It has been a while since I wrote for Dos, but ... Is it an application that you have written at your organization? if so, try this: In MS C, there is (was?) an "at exit" 'function' that lets you 'register' functions to be called when the app closed. I am not sure if that would still b called when the dos window was given a close command, but it's worth a shot.

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

Poster rated this answer

Collapse -

Preventing the use of the close button o

by parier In reply to Preventing the use of the ...

Is this DOS prg in a window in NT, can you maximize the window full screen, the borders will disappear and they cannot close it without hiting ALT+TAB, then the "X".

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

Poster rated this answer

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

It seems that I cannot reply to your suggestions without posting it as another answer!

Anyway, thanks for your answers, however, none of them will solve my problem.

Answer 1: Modifying the shortcut will only prevent problems from users who do not know how to <ALT>/<ENTER> and change the window size. Many of our users prefer to be able to see their icons behind the application. Therefore, they can easily close the window inappropriately. - Thanks anyway.

Answer 2: It's a third party program that I develop but I don't have access to the source code. It's a bit like developing in Access but not being able to re-write the source code for Access itself. - But thanks for the suggestion.

Answer 3: It is run under NT but, like any windows environment, an <ALT>/<ENTER> will still return it to a window where it can be closed inappropriately. - But thanks!

Anybody got any more suggestions?

Thanks again,

Eddie Palmer.

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

Poster rated this answer

Collapse -

Preventing the use of the close button o

by scooterg558 In reply to Preventing the use of the ...

After reading your responce to the ideas given, I'd say get with the program, and find another piece of software that will do what this piece does and get rid of this dos based program. Don't get me wrong, I'm a dos guy from ver 3.3 but if you can'tuse the program the way it was meant because you're running in a win environment, and you have users that are closing the sessions then get rid of it. You'll end up spending more time supporting it than you would investigating new solutions.

Collapse -

Preventing the use of the close button o

by techrepublic In reply to Preventing the use of the ...

Not very helpful suggestion. Some large organisations invest heavily in particular software packages and guys like me have little or no say as to which package to use.

Back to Community Forum
24 total posts (Page 1 of 3)   01 | 02 | 03   Next

General Discussion Forums