RadMessageBox question - keeping our custom cursor

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

    Posted 12 May 2009 Link to this post

    Hi,

    Our main form has a custom cursor that I set with this.Cursor = cusotmCursor;
    When I show a RadMessageBox our custom cursor is changed to the default WinForms arrow the cursor.
    When I click on the RadMessageBox button and the RadMEssageBox closes, the cursor returns to our custom cursor.

    This is very important to us for the evaluatio of the Teletik controls:
    How to keep our custom cursor when showing the RadMessageBox?
    The cursor must not change.

    This is my code - I subclassed the RadMessageBox in my custom class which the application uses.
    Is this the recommended way to wrap the RadMessageBox?

    I use .Net 3.5 SP1 with VS2008.


    Best Regards,
    Ofer


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Telerik.WinControls;
    using System.Windows.Forms;

    namespace UI.Forms.UserControls
    {
        public static class YMessageBox
        {
            public static DialogResult Show(IWin32Window parent, string text, string caption,
                MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)
            {            
                RadMessageBox.SetThemeName("Aqua");

                DialogResult dr = RadMessageBox.Show(parent, text, caption, buttons, icon, defaultButton, RightToLeft.Yes);
                return dr;
            }
        }
    }
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 15 May 2009 Link to this post

    Hello Ofer,

    Thank you for writing.

    I confirm that RadMessageBox changes the cursor to the default one -- it does not support changing the cursor and unfortunately this behavior cannot be changed in the current version. I have logged it as Feature Request and it will be implemented in some of the next releases.

    I have updated your Telerik points for bringing our attention to this. Do not hesitate to contact me again if you have other questions.

    Sincerely yours,
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top