Skip to content

DevExpress-Examples/winforms-xtraform-center-caption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms XtraForm - How to center a form caption

This example creates a CustomFormPainter class that draws the title of the form in the center.

protected override DevExpress.Skins.XtraForm.FormPainter CreateFormBorderPainter() {
    HorzAlignment formCaptionAlignment = HorzAlignment.Center;
    return new CustomFormPainter(this, LookAndFeel, formCaptionAlignment);
}

You can also use the DevExpress DirectX Form to deliver modern, web-inspired user interfaces and ensure that your apps support today’s high resolution/high DPI monitors.

Files to Review

Documentation

See Also

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)