)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display custom Image in WinForms MessageBoxAdv control?

Platform: WinForms |
Control: MessageBoxAdv |
Published Date: February 13, 2017 |
Last Revised Date: January 6, 2020

Display the custom image

The MessageBoxAdv control provides support to display custom images in it and that can be achieved by using its function named Show.

C#

// Support Icon
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OKCancel,this.imageListAdv1.Images[0],new Size(50, 50));      

 VB

' Support Icon
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OKCancel, Me.imageListAdv1.Images(0), New Size(50, 50))

 

Screenshot

Show the custom icon in MessageBoxAdv

Figure 1: Custom Icon.

Samples:

C#: MessageBoxAdvIconSupport

VB: MessageBoxAdvIconSupport

Reference link: https://help.syncfusion.com/windowsforms/messagebox/button-parameters#icon

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon