Problem with Image object

In VB2005, i've an application with many binded controls to a dataset.
Also i have code to check if data on the current row has been changed or not ( for save message confirmation ).

All of this works fine, but i've noticed that if i have a binded Image of a picturebox... when i try to move to another position in the bindingsource.. the row is always changed!

I have tested binding another object such like textbox, combobox, listbox, dgv etc and all notify when changed fine.. but image is getting me crazy!
[542 byte] By [satanorz] at [2007-11-20 10:48:52]
# 1 Re: Problem with Image object
Here is the code i'm using to check if any changes has been made to the current row.

Private Sub BindingComplete(ByVal sender As Object, ByVal e As BindingCompleteEventArgs)
If e.BindingCompleteContext = BindingCompleteContext.DataSourceUpdate Then
If e.BindingCompleteState = BindingCompleteState.Success And _
Not e.Binding.Control.BindingContext.IsReadOnly Then
Me.IsModified = True
'MsgBox("meeec!")
End If
End If
End Sub

As i said on the previous post, it works fine with all binded controls, but fails with PictureBox.

Any ideas?
satanorz at 2007-11-10 3:08:24 >
# 2 Re: Problem with Image object
I've tested making a custom control that have a binded property of Image type.. so if i bind it to a field if fails...

Also i have tested to blank the Set part of the property, so nothing will be changed but it sais that the row has been modified..

Public Property Imagen() As Image
Get
Return Me.imgImagen.Image
End Get
Set(ByVal value As Image)
Exit Property
End Set
End Property

At this point, need some help :S
satanorz at 2007-11-10 3:09:29 >