DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Saving picture to record

  1. #1
    Join Date
    Apr 2005
    Posts
    20

    Question Saving picture to record

    I'm just wondering how you save a picture to a record. I click 'Add' to add record and when i enter the path name of the picture and press enter the picture apears in the PictureBox. When i click 'Save' the system only saves the path name not the picture itself.

    Here's is my code for the picture function:

    Private Sub txtPicture_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
    picClient.Picture = LoadPicture(App.Path & "\Pictures\" & Trim$(txtPicture.Text))
    End If
    End Sub

    When i bind the picture to the Data Environment it gives me an error that the PictureBox cannot bind to 'picture'. What should the actual field in the databased be set to?

  2. #2
    Join Date
    Sep 2004
    Location
    Lahore
    Posts
    29
    You should check the following link:

    http://www.vbcode.com/code/PicInDataBase06102003.zip

    Hope it will help you in your problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center