Click here to Skip to main content
15,878,959 members

Comments by ongilito (Top 2 by date)

ongilito 3-May-17 5:35am View    
Dim opf As New OpenFileDialog
opf.Filter = "Choose Image(*.jpg;*.png;*.gif)|*.jpg;*.png;*.gif"
'add image variable
Dim myImage As Image=Nothing
If opf.ShowDialog = DialogResult.OK Then
'Get the image from openFileDialog to a variable
myImage=OpenFileDialog.Image
'now insert image to datagridview
DataGridView1.Rows(RowIndex).Add(myImage)
End If
End Sub
ongilito 20-Apr-17 16:50pm View    
Where are you getting your image from?