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;
}
}
}
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.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;
}
}
}