Deshabilitar la "X" de cerrar el programa.

HMG en Español

Moderator: Rathinagiri

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Deshabilitar la "X" de cerrar el programa.

Post by Javier Tovar »

danielmaximiliano wrote:esta hecho en Visual Basic.
:cry: :roll: :? ,

Saludos
abinfra
Posts: 68
Joined: Sat Jan 25, 2014 7:25 am
DBs Used: DBF

Re: Deshabilitar la "X" de cerrar el programa.

Post by abinfra »

Gracias Daniel, de momento nos puede servir.

Saludos cordiales.
Antonio Belando

danielmaximiliano wrote:Hola a Todos :

Todavia estoy luchando para saber la instancia donde corre la aplicacion D.O.S creada.
por ahora les sugiero utilizar la aplicacion ConsoloNoClose para evitar que una alicacion se cierre utilizando "X" desde su ventana
la misma se puede bajar desde aqui http://www.uwe-sieber.de/files/consolenoclose.zip

funciona muy bien y no consume recursos, esta hecho en Visual Basic.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Deshabilitar la "X" de cerrar el programa.

Post by bpd2000 »

Working example, refer

viewtopic.php?f=6&t=3880
BPD
Convert Dream into Reality through HMG
abinfra
Posts: 68
Joined: Sat Jan 25, 2014 7:25 am
DBs Used: DBF

Re: Deshabilitar la "X" de cerrar el programa.

Post by abinfra »

Hola bpd2000.
He ejecutado su ejemplo (Disable [Dim] / Enable Close Button "X") con HMG-IDE y me funciona correctamente.

¿Se puede adaptar el código de su ejemplo a un programa en modo consola y que compilo sin el HMG-IDE?

En caso afirmativo, me podría indicar que código debo incluir en la función MAIN de mi código, para que aparezca la ventana de consola con la X desactivada.

Saludos cordiales.

---------------------------------------------------------------------------------------------------------------------------------------------
Hello bpd2000.
I have run your example (Disable [Dim] / Enable Close Button "X"), and HMG-IDE and it works correctly.

Can you adapt the code to suit a program in console mode and compile without the HMG-IDE?

If so, I might indicate that I include code in the MAIN function of my code to display the console window with X disabled.

Best regards.


bpd2000 wrote:Working example, refer

viewtopic.php?f=6&t=3880
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Deshabilitar la "X" de cerrar el programa.

Post by bpd2000 »

abinfra wrote: Hello bpd2000.
I have run your example (Disable [Dim] / Enable Close Button "X"), and HMG-IDE and it works correctly.

Can you adapt the code to suit a program in console mode and compile without the HMG-IDE?

If so, I might indicate that I include code in the MAIN function of my code to display the console window with X disabled.

Best regards.
Sam code can not be adopted in Console version
I found solution, due to busy schedule I can not code for console for 1/2 week or
Send me your mini sample console application, I will do necessary correction
BPD
Convert Dream into Reality through HMG
abinfra
Posts: 68
Joined: Sat Jan 25, 2014 7:25 am
DBs Used: DBF

Re: Deshabilitar la "X" de cerrar el programa.

Post by abinfra »

Bpd2000 Thanks for your interest.

Under a bit of code to the beginning of my program, I started doing in 1992.
It is an application that I use in my work only.

Best regards.

---------------------------------------------------------------------------------------------------------------------------------------------
Gracias bpd2000 por tu interés.

Adjunto un poco de código con el inicio de mi programa, que comencé hacer en 1992.
Es una aplicación que utilizo solo yo en mi trabajo.

Saludos cordiales.


bpd2000 wrote:
abinfra wrote: Hello bpd2000.
I have run your example (Disable [Dim] / Enable Close Button "X"), and HMG-IDE and it works correctly.

Can you adapt the code to suit a program in console mode and compile without the HMG-IDE?

If so, I might indicate that I include code in the MAIN function of my code to display the console window with X disabled.

Best regards.
Sam code can not be adopted in Console version
I found solution, due to busy schedule I can not code for console for 1/2 week or
Send me your mini sample console application, I will do necessary correction
Attachments
HMGEMP.7z
(621.14 KiB) Downloaded 242 times
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Deshabilitar la "X" de cerrar el programa.

Post by bpd2000 »

For Console application refer below link
http://hmgforum.com/viewtopic.php?f=6&t ... 008#p36008
BPD
Convert Dream into Reality through HMG
User avatar
LOUIS
Posts: 256
Joined: Tue Dec 11, 2012 9:05 pm
DBs Used: DBF

Re: Deshabilitar la "X" de cerrar el programa.

Post by LOUIS »

bpd2000 You are a Genius !!!!!

+ 1000

Thank you very much !!!!!

You solved my problem of many years :mrgreen:

HMG I LOVE YOU !!!
abinfra
Posts: 68
Joined: Sat Jan 25, 2014 7:25 am
DBs Used: DBF

Re: Deshabilitar la "X" de cerrar el programa.

Post by abinfra »

Thank you really bpd2000.

A hug.
Post Reply