Visual Basic question

Permabanned
Joined
10 Apr 2004
Posts
13,122
Location
Darlington, County Durham
Basically want to capture a particular window to the clipboard, whether or not it is active.

Is it possible? If so, how?
 
How do you mean caputre it? Do you want a screen shot of it or just capute some data from the form?

I am not 100% on this but I am sure both would need to be active to do this.

sfx
 
Which version of VB? .NET does clipboard stuff in a different way from VB6 and before.

If you just want a screenshot of the window though you could use sendkeys to send ALT+PrtScr to the active window which will put it into the clipboard in bmp format. You could quickly switch to the window before sending the key sequence and back again afterwards. This may cause a slight screen flicker though.. I guess you'd have to try it and see if it was noticeable.
 
Back
Top Bottom