Results 1 to 2 of 2

Thread: SavePicture Statement

  1. #1

    Thread Starter
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334
    How do I use the SavePicture Statement?

    I have tried . . .

    Code:
    Private Sub cmdSave_Click()
        
        frmDraw.picFrame.Picture = frmDraw.picFrame.Image
        
        SavePicture frmDraw.picFrame.Picture, "a:\" & InputBox("Filename?", "Save File") & ".bmp"
    An' blow me (ooer . . . .) if it doesn't work!

    The VB help is pants 'cos it uses reserved words 'n' everything!



    [email protected]
    Matt G
    VS6 Ent SP5 @ Work
    VS6 Ent SP5 & VB.Net @ Home
    [email protected]



  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)


    Sub Main()
    'To get the Entire Screen
    Call keybd_event(vbKeySnapshot, 1, 0, 0)

    'To get the Active Window
    'Call keybd_event(vbKeySnapshot, 0, 0, 0)

    SavePicture Clipboard.GetData(vbCFBitmap), "C:\Hello.bmp"
    End Sub


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