Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > VB2005 Safe picture to ms access database
 

VB2005 Safe picture to ms access database

Hello,

Can anybody tell me how i can save a picture to an access database and show it on my form.

Thanks in advance..

Bodylojohn  Saturday, December 09, 2006 10:28 AM
Ken Tucker  Saturday, December 09, 2006 11:22 AM

Hello,

I tried this and it works.
Is this a good solution???
Or do you recomend anything alse???

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim OFD As New OpenFileDialog

OFD.Filter = "BMP files (*.bmp)|*.bmp|JPG files (*.jpg)|*.jpg"

If OFD.ShowDialog = Windows.Forms.DialogResult.OK Then

Me.FotoPictureBox.Image = Image.FromFile(OFD.FileName)

End If

End Sub

Bodylojohn  Sunday, December 10, 2006 10:49 AM

You can use google to search for other answers

Custom Search

More Threads

• Null DateTime value
• how to set Listview Item Heigh in C#
• Showing filtered Columns in a Datagrid
• DataGridView custom editing control -- larger than bounds of cell
• How do I get a comma seperated string of values from a listbox?
• data grid
• dataGridImageView - How to display no image?
• Databinding in design time
• inserting rownumbers in the Rowheader
• Datagrid Sort Problem