This is a migrated thread and some comments may be shown as answers.

RadMessageBox custom icon

1 Answer 182 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Ruth Goldberg
Top achievements
Rank 1
Ruth Goldberg asked on 26 Jan 2010, 02:19 PM
I would like to use a custom icon with RadMessageBox. I see that the only overloaded calls to Show() which let you pass an icon .bmp file also require that you pass the previous window as the first parameter. I would like to use the same default window as the overloads to Show() that don't require this parameter. What can I use as the window that would give me the same results?

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 27 Jan 2010, 02:39 PM
Hi Ruth Goldberg,

Thank you for your question. You can simply use null for the owner:

RadMessageBox.Show(null, "My message", "Message", MessageBoxButtons.YesNo, myBitmap);

Write me back if you have any other questions.

Regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
MessageBox
Asked by
Ruth Goldberg
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or