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.
- CustomFormPainter.cs (VB: CustomFormPainter.vb)
- Program.cs (VB: Program.vb)
- XtraForm1.cs (VB: XtraForm1.vb)
(you will be redirected to DevExpress.com to submit your response)