CaptureActiveClient Example for Visual Basic

    'set custom Capture cursor
    'and include it in captured image
    LEADRasterScr1.CaptureDelay = 3000
    LEADRasterScr1.CaptureCursor = LoadPicture("d:\temp\test.cur")
    LEADRasterScr1.CaptureCursorIndex = 99
    LEADRasterScr1.CaptureAreaIncludeCursor = True

    'capture the client area of the active window
    LEADRasterScr1.CaptureActiveClient
    
    'copy the captured image to a Main Control
LEADRasterView1.Raster Bitmap = LEADRasterScr1.Bitmap