![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I created a preference window for my outlook add-in with windows forms. I have 2 questions. 1. should the preference window be the child window of outlook main window? if Yes how to make it move outside the outlook window? If I set the parent window as outlook window, then my window cannot move outside and my window is kind of flicking and got overlapped by outlook windows (just partially. it seems outlook is try to draw over my preference window). However if I use Spy++ and look at the option window of outlook, it is a child window of outlook and can still move outside. (I am a noob here. but the tree structure in spy++ is different for this kind of child window. it is not a sub tree item under outlook window. However in the property's windows tab, it shows outlook as the parent window). 2. How can I make my preference window always on top of the outlook window so that if it is not closed, user cannot focus back to outlook. this is just like the option window in outlook. Thanks. |
Ads |
#2
|
|||
|
|||
![]()
What version of Outlook, what development platform and language, what code
are you using to do what you're doing? -- 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 ... Hi, I created a preference window for my outlook add-in with windows forms. I have 2 questions. 1. should the preference window be the child window of outlook main window? if Yes how to make it move outside the outlook window? If I set the parent window as outlook window, then my window cannot move outside and my window is kind of flicking and got overlapped by outlook windows (just partially. it seems outlook is try to draw over my preference window). However if I use Spy++ and look at the option window of outlook, it is a child window of outlook and can still move outside. (I am a noob here. but the tree structure in spy++ is different for this kind of child window. it is not a sub tree item under outlook window. However in the property's windows tab, it shows outlook as the parent window). 2. How can I make my preference window always on top of the outlook window so that if it is not closed, user cannot focus back to outlook. this is just like the option window in outlook. Thanks. |
#3
|
|||
|
|||
![]()
Outlook 2003 and 2007. VS 2008 with C# and Shared Add-in is what I am doing.
What I try to do is at some point the my code will create a preference window. So I created a Form window with some controls on it. this part is straight forward. but I want the window act like application's preference window. (for example, outloook's option window). thanks. "Ken Slovak - [MVP - Outlook]" wrote: What version of Outlook, what development platform and language, what code are you using to do what you're doing? -- 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 ... Hi, I created a preference window for my outlook add-in with windows forms. I have 2 questions. 1. should the preference window be the child window of outlook main window? if Yes how to make it move outside the outlook window? If I set the parent window as outlook window, then my window cannot move outside and my window is kind of flicking and got overlapped by outlook windows (just partially. it seems outlook is try to draw over my preference window). However if I use Spy++ and look at the option window of outlook, it is a child window of outlook and can still move outside. (I am a noob here. but the tree structure in spy++ is different for this kind of child window. it is not a sub tree item under outlook window. However in the property's windows tab, it shows outlook as the parent window). 2. How can I make my preference window always on top of the outlook window so that if it is not closed, user cannot focus back to outlook. this is just like the option window in outlook. Thanks. |
#4
|
|||
|
|||
![]()
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. "BatKing" wrote: Outlook 2003 and 2007. VS 2008 with C# and Shared Add-in is what I am doing. What I try to do is at some point the my code will create a preference window. So I created a Form window with some controls on it. this part is straight forward. but I want the window act like application's preference window. (for example, outloook's option window). thanks. "Ken Slovak - [MVP - Outlook]" wrote: What version of Outlook, what development platform and language, what code are you using to do what you're doing? -- 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 ... Hi, I created a preference window for my outlook add-in with windows forms. I have 2 questions. 1. should the preference window be the child window of outlook main window? if Yes how to make it move outside the outlook window? If I set the parent window as outlook window, then my window cannot move outside and my window is kind of flicking and got overlapped by outlook windows (just partially. it seems outlook is try to draw over my preference window). However if I use Spy++ and look at the option window of outlook, it is a child window of outlook and can still move outside. (I am a noob here. but the tree structure in spy++ is different for this kind of child window. it is not a sub tree item under outlook window. However in the property's windows tab, it shows outlook as the parent window). 2. How can I make my preference window always on top of the outlook window so that if it is not closed, user cannot focus back to outlook. this is just like the option window in outlook. Thanks. |
#5
|
|||
|
|||
![]()
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. |
#6
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wanted Contact Relationship Manager for Outlook 2003 | John | Outlook - General Queries | 1 | April 22nd 07 09:58 PM |
How do I import OE6 messages to Windows Mail on Windows Vista? | Steve Gardner | Outlook Express | 1 | February 19th 07 01:06 PM |
Windows Easy Transfer for Windows Vista/Outlook2007 | GoldCoaster | Outlook - Installation | 1 | February 5th 07 04:16 AM |
how do I sync my windows mobile device with windows vista? | Nplatzer | Outlook - Installation | 2 | February 2nd 07 11:54 PM |
Windows Live Mail Desktop Beta & Windows Messenger | Djc_74 | Outlook Express | 6 | June 7th 06 09:03 PM |