RadMessageBox custom icon

2 posts, 0 answers
  1. Ruth Goldberg
    Ruth Goldberg avatar
    54 posts
    Member since:
    Dec 2009

    Posted 26 Jan 2010 Link to this post

    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?
  2. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 27 Jan 2010 Link to this post

    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.

    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.
Back to Top