'Declaration Public Property Appearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase Appearance {get; set;}
The settings on this Appearance object affect the entire control. If you want to make only the area within the borders a certain color, set the Infragistics.Win.AppearanceBase.BackColor property on the ContentAreaAppearance property.
Imports Infragistics.Win Imports Infragistics.Win.Misc Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' ' Set various properties on the control's Appearance object. ' ' Set the cursor to be used when the mouse cursor is over the control. Me.UltraGroupBox1.Appearance.Cursor = Cursors.Hand ' Set the background image to be used in the control. Me.UltraGroupBox1.Appearance.ImageBackground = Bitmap.FromFile("c:\someImage.bmp") Me.UltraGroupBox1.Appearance.ImageBackgroundStyle = ImageBackgroundStyle.Tiled End Sub
using Infragistics.Win; using Infragistics.Win.Misc; private void Form1_Load(object sender, System.EventArgs e) { // // Set various properties on the control's Appearance object. // // Set the cursor to be used when the mouse cursor is over the control. this.ultraGroupBox1.Appearance.Cursor = Cursors.Hand; // Set the background image to be used in the control. this.ultraGroupBox1.Appearance.ImageBackground = Bitmap.FromFile( @"c:\someImage.bmp" ); this.ultraGroupBox1.Appearance.ImageBackgroundStyle = ImageBackgroundStyle.Tiled; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2