Link to home
Start Free TrialLog in
Avatar of KingSencat
KingSencat

asked on

PrintWindow API Call ( VB 6.0 and 500 Points)

I need to use the PrintWindow API Call to save a portion of a window to a picture box. I have done this so far ( see attached code). Any suggestions?
Dim Hwndwindow As Long
Hwndwindow = FindWindow(vbNullString, "Calculator")
Picture1.Visible = True
Picture1.AutoRedraw = True
Picture1.Picture = Nothing
PrintWindow Hwndwindow, Picture1.hDC, 0

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of pathakhemant
pathakhemant

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial