VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

First time ever Clear the Debug/Immediate window with code

José Lucio Gama  (1 Submission)   Debugging and Error Handling   Advanced   Wed 3rd February 2021

For the first time ever, a code that can clear the debug window from code!
It's actually a cheat, since VB5-VB6 doesn't allow to clear the window without stopping the running project - the program sets the focus on the debug window, go to the last char and start printing a lot of empty lines - effectively getting rid of all clutter visible on the window.

Assumes
Win32 API knowledge

API Declarations
FindWindow, SetForegroundWindow and SetFocus

Rate First time ever Clear the Debug/Immediate window with code (5(5 Vote))
First time ever Clear the Debug/Immediate window with code.bas

First time ever Clear the Debug/Immediate window with code Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters