Skip to content

DevExpress-Examples/winforms-xtraform-center-caption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 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.

WinForms XtraForm - How to center a form caption

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)

Contributors