Results 1 to 4 of 4

Thread: Picture to File..Very Ver y Urgent

  1. #1

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    Hi eveyone,

    Dim filesys As New FileSystemObject
    Dim file1 As TextStream
    Dim fileobj As File

    Set file1 = filesys.CreateTextFile("c:\test.bmp", True)

    Clipboard.Clear
    Clipboard.SetData PicFinal.Image, vbCFBitmap

    file1.WriteLine Clipboard.GetData
    file1.Close

    **

    I am trying to copy a file in the picture box to a bitmap file. It didnt work..can anyone please rectify this error.

    Thanx in advance.

    Venkat.

  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    Post


    Hi, venkatraman_r

    Actually, you can use SavePicture command.

    SavePicture imgObject.Picture, "c:\windows\desktop\a.bmp"

    Does it help ?

    Regards

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    well to like take a picture from the clipboard to a picture box that easy just do this
    Picture1.Picture = Clipboard.GetData

  4. #4

    Thread Starter
    Hyperactive Member venkatraman_r's Avatar
    Join Date
    Jul 1999
    Location
    Chennai, INDIA
    Posts
    284

    Post

    thanx guys,

    savepicture turned out well.



    Venkat.

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