RadMessageBox questions

16 posts, 0 answers
  1. Ofer
    Ofer avatar
    14 posts
    Member since:
    Apr 2009

    Posted 05 May 2009 Link to this post

    Hi,

    We evaluate Q1 2009 Winforms controls with VS2008 SP1.

    1) How to change RadMessageBox title font?

    2) How to change RadMessageBox message font?

    3) Does the RadMessageBox plays error / success sounds according to the MessageBoxIcon like the .Net MessageBox.Show ?

    4) The documentation application that comes with the WinForms doesn't have an entry for RADmessagebox - where to find documentation?

    5) Does the RADmessagebox support HTML?  I tried <b> and </b> tags but they are shown.

    6) The localization feature of the RADmessagebox buttons text is very nice :-)

    Thank you!
        

  2. Andrea
    Andrea avatar
    62 posts
    Member since:
    Jan 2005

    Posted 07 May 2009 Link to this post

    " 6) The localization feature of the RADmessagebox buttons text is very nice :-) "

    How it works?

    Thanks




  3. Andrea
    Andrea avatar
    62 posts
    Member since:
    Jan 2005

    Posted 07 May 2009 Link to this post

    I found the solution in documentation!

    Ciao

  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts
    Member since:
    Sep 2012

    Posted 08 May 2009 Link to this post

    Hi Ofer,

    Thank you for writing. Up to your questions:

    1 and 2) You can customize the Font by creating and applying the custom theme for RadMessageBox. Please, find more info in the following KB article.
    3) The RadMessageBox plays same sounds, as MessageBox.
    4) You can find details about using RadMessageBox in our help.
    5) The RadMessageBox supports html formatting. Just add <html> tag before the text:
     

    Telerik.WinControls.RadMessageBox.Show(this"<html>This is a <b>bold text</b> \n"); 
     
    6) Thank you for the feedback. You can find info how to use localization provider in our help.

    Do not hesitate to contact me again if you have other questions.

    Regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  5. Paul Lancaster
    Paul Lancaster avatar
    1 posts
    Member since:
    Jan 2010

    Posted 08 Feb 2010 Link to this post

    Hi,
    the HTML support feature is simple and a great idea, congratulations.
    But..have limitations? example that not work:

    RadMessageBox.Show(this"<html>This is a <font size=4><b>bold text</b></font> \n");

    something like that happend too with font family, colors, etc.

    Anolther problem that i found:

    If you use html syntax in the title section, works fine, but have a problem with "\n":
    the problem is that buttons are no more visible  because of successive use of "\n".

    Regards.

  6. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts
    Member since:
    Sep 2012

    Posted 10 Feb 2010 Link to this post

    Hello Paul Lancaster,

    Thank you for contacting us. Please, take a look at our documentation for a list of the supported tags in our html-liking formatting. If you want to set text size, you have to use <size=4> instead <font size=4>:

    RadMessageBox.Show(this, "<html>This is a <size=4><b>bold text</b>\n");

    Write me back if you have any other questions.

    Best wishes,
    Martin Vasilev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.

  7. Sayed
    Sayed avatar
    4 posts
    Member since:
    Dec 2012

    Posted 05 Dec 2012 Link to this post

    When i use HTML tags with Arabic messages it gets messed up ... the words should be read from right to left but after using HTML tags it reverted to left to right... how can i fix it?

    It happens only with the message text ... but it is working fine with the message caption?!!!

  8. Boryana
    Admin
    Boryana avatar
    326 posts
    Member since:
    Sep 2012

    Posted 10 Dec 2012 Link to this post

    Hello Sayed,

    Thank you for writing.

    Currently, html-like formatting does not support right-to-left languages. I have added this as a feature request to our Public Issue Tracker under ID 13709. To vote for it and subscribe for its status updates, follow this link: http://www.telerik.com/support/pits.aspx#/public/winforms/13709. We will do our best to implement the functionality in a future release. Your Telerik points have been updated for this request.

    Let me know if you encounter any further issues using our controls. I will do my best to assist you.

    Kind regards,
    Boryana
    the Telerik team

    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.

  9. Sayed
    Sayed avatar
    4 posts
    Member since:
    Dec 2012

    Posted 11 Dec 2012 Link to this post

    Thanks for your answering.
    May i ask why HTML-Like formatting is supporting in the Title of the rad message box but not in the message body itself?

  10. Boryana
    Admin
    Boryana avatar
    326 posts
    Member since:
    Sep 2012

    Posted 14 Dec 2012 Link to this post

    Hello Sayed,

    Thank you for writing back.

    The RadLabel in the RadMessageBox body has a TextWrap property set to true. If you set the property to false, the text will be displayed as in the caption:

    private void radButton1_Click(object sender, EventArgs e)
    {
        RadLabel label = RadMessageBox.Instance.Controls[1] as RadLabel;
        if (label != null)
        {
            label.TextWrap = false;
        }
        RadMessageBox.Show(this, "<html>واحد اثنان ثلاثة أربعة خمسة\n", "<html>واحد اثنان ثلاثة أربعة خمسة\n");
    }

    Using the above approach, however, eliminates the text wrapping which might be inconvenient for many scenarios. The reason our HTML-rendering mechanism does not work with enabled TextWrap is purely
    missing  implementation. This is why I have added this behavior as a feature request to our Public Issue Tracker.

    I hope you find this information useful. Let me know if you have further queries.

    Greetings,
    Boryana
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.

  11. Sayed
    Sayed avatar
    4 posts
    Member since:
    Dec 2012

    Posted 02 Feb 2013 Link to this post

    One more question, please ... How to set the RadMessageBox to be displayed as TopMost window?

  12. Anton
    Admin
    Anton avatar
    167 posts
    Member since:
    Aug 2012

    Posted 06 Feb 2013 Link to this post

    Hello Sayed,

    Thank for the question.

    Currently RadMessageBox inherits this property from its owner and to achieve this you should set the TopMost property of the owner control:

    this.TopMost = true;
    RadMessageBox.Show(this,"text");

    However, if you don't want the owner of RadMessageBox to be top most as well, you should use RadMessageBoxForm instead of RadMessageBox. Here is a sample:

    RadMessageBoxForm form = new RadMessageBoxForm();
     
    form.DialogResult = DialogResult.No;
    form.RightToLeft = RightToLeft.No;
    form.MessageText = "Text";
     
    form.StartPosition = FormStartPosition.CenterParent;
     
    form.Owner = this;
     
    form.MessageIcon = null;
    form.ButtonsConfiguration = MessageBoxButtons.YesNo;
    form.DefaultButton = MessageBoxDefaultButton.Button1;
     
    form.TopMost = true;
     
    form.ShowDialog();

    I hope it helps.

    Greetings,
    Anton
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.

  13. Sayed
    Sayed avatar
    4 posts
    Member since:
    Dec 2012

    Posted 06 Feb 2013 Link to this post

    Thanks for your reply... I will try it tomorrow :) 

    Just a question... What if its owner is a UserControl? 

  14. Anton
    Admin
    Anton avatar
    167 posts
    Member since:
    Aug 2012

    Posted 11 Feb 2013 Link to this post

    Hi Sayed,

    Thank you for writing back.

    The Show method of RadMessageBox is designed to accept owner from type IWin32Window. So every class that implements this interface can be owner of RadMessageBox. This interface is fundamental for every win forms type including UserControl. This mean that will not have any problems to use RadMessageBox with UserControl.

    I hope this helps.

    Greetings,
    Anton
    the Telerik team

    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.

  15. moftol
    moftol avatar
    17 posts
    Member since:
    Feb 2008

    Posted 24 Mar 2013 Link to this post

    Dears,

    I have a problem i am using Telerik windows form rad message box and display arabic text in the rad message box, but the problem is  that text wrap to second line and is not visible, the same text is working fine when i use .NET Core MessageBox.

    any suggestions.

    Thanks you.

  16. Anton
    Admin
    Anton avatar
    167 posts
    Member since:
    Aug 2012

    Posted 27 Mar 2013 Link to this post

    Hi Farooq,

    We kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    Your question has already been answered in the forum thread: http://www.telerik.com/community/forums/winforms/forms-and-dialogs/radmessagebox-large-text-height-problem.aspx

    Should you have any other questions, I will be glad to assist you

    All the best,
    Anton
    the Telerik team

    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.

Back to Top