Hi every body
i devoloped a custom MessageBox Class to use it in other application, and i made the application
and it work fine except in one place and it's Window_Closing handler.
If i replce the custom MessageBox with the standard MessageBox it works when i use my custom message box it doesn't and i don't know why and here's asnapshot of my code
[code]
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{

if (savingRequest == true)
{

switch (MessageBoxCustomized.Show("Save Changes", "Attention", MessageBoxButton.YesNoCancel))
{
case MessageBoxResult.Yes:
{
notifyIcon.Dispose();
SaveTreeView();
}
break;

case MessageBoxResult.No: notifyIcon.Dispose();
break;

case MessageBoxResult.Cancel:e.Cancel = true;

break;

}
}
//MessageBox.Show(
[code/]

so pls advise