I am having trouble in calling StrechBlt from Sub Main(). It produces no effect, while the same code in a command button on the form executes the code perfectly. I am calling StretchBlt just after showing the form in my sub main.
Printable View
I am having trouble in calling StrechBlt from Sub Main(). It produces no effect, while the same code in a command button on the form executes the code perfectly. I am calling StretchBlt just after showing the form in my sub main.
The Sleep function is completely different from DoEvents. Sleep completely halts your app until the requested time is up. DoEvents allows other processes to complete their code and then runs the code directly following it.