Results 1 to 7 of 7

Thread: [RESOLVED] [VB6] - building a new Backcolor property

Threaded View

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Resolved [RESOLVED] [VB6] - building a new Backcolor property

    i build a new property:
    Code:
    Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
           sprBackColor = PropBag.ReadProperty("sprBackColor", lngBackColor)
    End Sub
    
    Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
         PropBag.WriteProperty "sprBackColor", sprBackColor, lngBackColor
    End Sub
    
    Public Property Get sprBackColor() As OLE_COLOR
        sprBackColor = lngBackColor
    End Property
    
    Public Property Let sprBackColor(newBackColor As OLE_COLOR)
        lngBackColor = newBackColor
        Call ShowImage
        PropertyChanged "sprBackColor"
    End Property
    my question is: why these property don't save the value from project mode to the run mode?
    (i always recive black color . but if i change in project mode works fine(in project mode). and if i change in run mode, works fine. but if i change for vbyellow, in project mode, i recive black in run mode)
    thanks
    Last edited by joaquim; Nov 28th, 2009 at 02:36 PM.
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width