We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

MetroForm Title and buttons vertical alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

129625 Mar 26,2017 08:19 AM Mar 29,2017 12:47 AM Windows Forms 5
loading
Tags: MetroForm
Nick Mesisca
Asked On March 26, 2017 08:19 AM

Hi all,
in a MetroForm, is it possible to have the title vertically centered, while the caption buttons (min-max-close) are at the top?
I can only seem to move both or nothing..

thanks for the help,
regards
Nick

Kannan R [Syncfusion]
Replied On March 27, 2017 05:53 AM

Hi Nick 
 
Thank you for contacting Syncfusion support.  
 
This reported requirement can be achieved by using its property named “CaptionVerticalAlignment” in MetroForm. Please make use of below code snippet for your reference.  
 
Code Snippet: [C#] 
 
 
this.CaptionVerticalAlignment = VerticalAlignment.Bottom; 
 
 
Screenshot 
 
 
 
We have also prepared sample for your reference and it can be downloaded from below location.  
 
 
Kindly check with above solution and let us know if it helps.  
 
Regards 
Kannan 


Nick Mesisca
Replied On March 27, 2017 07:54 AM

Hello,
i don't think i understand your answer.. it looks to me like the captionbuttons in the pics you attached, are all vertically centered..
I would like to have the buttons at the top of the form, while the title stays vertically centered..

thanks
Nick

Kannan R [Syncfusion]
Replied On March 27, 2017 08:11 AM

Hi Nick 
 
Thank you for your update.  
 
At present there is no possibility to customize the location of Control Box Buttons. This reported requirement can be achieved by hiding default Control Box and using Custom Caption Image option and by handling below events for customizing the Control Box button like appearance and functionality. 
 
·         ImageMouseEnter 
·         ImageMouseLeave 
·         ImageMouseMove 
·         ImageMouseUp 
 
We have prepared an example based on this requirement for your reference and it can be downloaded from below location.  
 
 
Kindly check and let us know if it helpful. 
 
Regards 
Kannan 


Nick Mesisca
Replied On March 28, 2017 10:11 PM

Very useful. Thanks again,
regards

Nick

Kannan R [Syncfusion]
Replied On March 29, 2017 12:47 AM

Hi Nick 
 
Thank you for your update. 
 
We are glad that we helped you in this. Please let us know if you need any further assistance.  
 
Regards 
Kannan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;