Category / Section
How to set the size for caption image in title bar of WinForms Form(SfForm)?
1 min read
By default, SfForm does not provide the direct support for set the Caption Image Size in TitleBarControl in SfForm. You can achieve this by customizing the Image by using ImageList then added into CaptionImage.
ImageList list = new ImageList(); list.Images.Add(SystemIcons.Application.ToBitmap()); list.ImageSize = new Size(30, 30); this.Style.TitleBar.CaptionImage = list.Images[0]; this.Style.TitleBar.CaptionImageLocation = new Point(40, 4);