Cependant si je cherche l'image depuis le menu propriété, il affiche l'image sans problème. Je me demande bien si le code LoadPicture est valide dans cette option.
Voici mon UserControl :
Public Property Get Picture() As Picture Set Picture = Picture1.Picture End Property
Public Property Set Picture(ByVal New_Picture As Picture) Set Picture1.Picture = New_Picture PropertyChanged "Picture" End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag) Set Picture = PropBag.ReadProperty("Picture", Nothing) End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag) Call PropBag.WriteProperty("Picture", Picture, Nothing) End Sub