Results 1 to 3 of 3

Thread: PictureBox

  1. #1

    Thread Starter
    Addicted Member Diab's Avatar
    Join Date
    Apr 2001
    Posts
    185

    Question PictureBox

    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 !

  2. #2
    Member
    Join Date
    May 2001
    Location
    US Of A
    Posts
    41
    WHAT , can you be more clear????
    so you dont want it to load in the picbox before saving???

  3. #3

    Thread Starter
    Addicted Member Diab's Avatar
    Join Date
    Apr 2001
    Posts
    185
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width