Completed
Last Updated: 16 Nov 2015 16:13 by ADMIN
ADMIN
Dimitar
Created on: 10 Nov 2015 08:37
Category: Form
Type: Bug Report
0
FIX. RadMessageBox - exception when the AccessibilityObject is created and the form is closed fast.
To reproduce: 
- Start the narrator, open a message box and close it fast.
 
Workaround:
void button_Click(object sender, EventArgs e)
{
    RadMessageBox.Instance.Shown += Instance_Shown;
    RadMessageBox.Show("test");
}

void Instance_Shown(object sender, EventArgs e)
{
    RadMessageBoxForm form = sender as RadMessageBoxForm;

    typeof(RadMessageBoxForm).GetField("accObjectCreated", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(form, false);
}
0 comments