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.