Form Windows Close Flashes Outlook Window

Add-in Express™ Support Service
That's what is more important than anything else

Form Windows Close Flashes Outlook Window
 
Frank Perugini


Guest


I open dialog windows from toolbar buttons like so:


private void cbbOptions_Click(object sender)
{
    DlgOptions dlg = new DlgOptions();
    dlg.ShowDialog();
}


In the Dialog code, when I am done, I call Dispose(). I notice when the dialog closes that it flashes the entire Outlook application window. Sometimes it is quite noticeable.

Does anyone know what would cause this?

-Frank
Posted 14 Sep, 2006 21:29:47 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Frank.

It seems to me that the call of the Dispose method inside of the form is not correct. Try the code below:

private void cbbOptions_Click(object sender)
{
DlgOptions dlg = new DlgOptions();
dlg.ShowDialog();
dlg.Dispose();
}
Posted 15 Sep, 2006 09:41:34 Top