I have a function in the modoul and this function return the desktop background
and i save the picture in the pictureBox how can i do if i want to do this not with
pictureBox (Without the Form) to save the result !:confused: :confused:
Printable View
I have a function in the modoul and this function return the desktop background
and i save the picture in the pictureBox how can i do if i want to do this not with
pictureBox (Without the Form) to save the result !:confused: :confused:
WHAT , can you be more clear????
so you dont want it to load in the picbox before saving???
i have this function
Sub Grabscreen(Dest As PictureBox)
Dim DeskhWnd As Long, DeskDC As Long
'Get the hWnd of the desktop
DeskhWnd = GetDesktopWindow()
'BitBlt needs the DC to copy the image. So, we
'need the GetDC API.
DeskDC = GetDC(DeskhWnd)
Dest.AutoRedraw = True
StretchBlt Dest.hwd, 0, 0, _
640, 480, DeskDC, 0, 0, Screen.Width / Screen.TwipsPerPixelX, _
Screen.Height / Screen.TwipsPerPixelY, &HCC0020
Dest.Refresh
End Sub
what i have to change to do the same thing but With StdPicture for
example not with PictureBox