Articles in this section
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);

 

Set the size for caption image in SfForm

 

View Sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied