colttaylor
Programmer
I have a dos program which I launch from my VB 6.0 application using SHELL. When I do this, the dos program comes up in a reasonable size window in the middle of the screen and the user effectively runs the program via the keyboard. My problem is that when the users are done running the program, they don't exit the program via the keyboard strokes which shut down the program. Instead, they use the X icon at the top of the console window from random points in my dos program's execution. This has the expected effect of leaving files open, corrupting indeces, etc.
What I would like to do is somehow get the window handle of the console window and use it to remove the X icon or remove the entire title bar.
Anybody have any code or clues on how to do this?
Thanks in advance!
Peace,
Colt
If it's stupid but it works, it isn't stupid
What I would like to do is somehow get the window handle of the console window and use it to remove the X icon or remove the entire title bar.
Anybody have any code or clues on how to do this?
Thanks in advance!
Peace,
Colt
If it's stupid but it works, it isn't stupid