Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell dos window w/o title bar?

Status
Not open for further replies.

colttaylor

Programmer
Aug 20, 2002
117
US
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
 
Tomreid - I get an error when I click your link - "There has been a permanent error" ...

-----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
HI, I just tried my site this morning and it looks OK now.
Let me know if you still have problems accessing it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top