Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / BackgroundImage Property
Example


In This Topic
    BackgroundImage Property (ElementWindowless)
    In This Topic
    Gets or sets the background image for the control.
    Syntax
    'Declaration
     
    
    Public Overridable Property BackgroundImage As Picture
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Picture
     
    instance.BackgroundImage = value
     
    value = instance.BackgroundImage
    public virtual Picture BackgroundImage {get; set;}
    Example
    control.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\overlay.bmp"));
    control.MarginTop = 3;
    control.MarginBottom = 3;
    control.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("d:\overlay.bmp"))
    control.MarginTop = 3
    control.MarginBottom = 3
    See Also