Articles in this section
Category / Section

How to display custom Image in WinForms MessageBoxAdv control?

1 min read

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied