Spread WinForms 15
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / ForegroundImage Property
Example


In This Topic
ForegroundImage Property (ElementWindowless)
In This Topic
Gets or sets the foreground image for the element.
Syntax
'Declaration
 
Public Overridable Property ForegroundImage As Picture
 
'Usage
 
Dim instance As ElementWindowless
Dim value As Picture
 
instance.ForegroundImage = value
 
value = instance.ForegroundImage
Example
control.ForegroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\overlay.bmp"));
control.MarginTop = 3;
control.MarginBottom = 3;
See Also