Sorry Ken,
I was confused by myself and that's why I asked this funny yet stupid
questions. Because I started to learn C# (and even all the windows
programming) just 2 months ago and the worst part is I have to add button in
the preview pan which outlook object model not supported. so for all my
windows, forms ...... I used win32 API to add the windows and forms on
outlook. Anyway, I knew how to add a button in preview pan but I didn't know
the basic stuff as how to create a modal dialog.
"Ken Slovak - [MVP - Outlook]" wrote:
I still have no idea how you were setting the parent/child relationship.
Is your window appearing behind the main Outlook window (Explorer)?
When I open a Windows form in an addin, let's say from a button on a
toolbar, the window appears in front of the main Outlook window and since
it's modal I can't click on the main Outlook window due to the modality.
What are you seeing that's different?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"BatKing" wrote in message
...
I figure out how to make my window as a Modal Dialog. using showDialog() is
the way to go.
so my only question is, should I still set outlook main window as the
parent
window? or just leave it as is now which desktop window is the parent
window.
thanks.