I thought modal dialogs were always not shown in the taskbar. As in, I thought it was a Windows thing, with nothing to be done in code.