![]() |
Can I hide an explorer or make an explorer modal
Hi,
I want to offer the user a Calendar Explorer to pick a date. As long as this explorer is open he should not be able to switch to another explorer. Is it possible to make this explorer modal OR to hide all other active explorers as long as this explorer is used?? Best Tom |
Can I hide an explorer or make an explorer modal
You could set the WindowState of any other open Explorers to olMinimized.
There's no command in the object model to make an Explorer modal. You could get the window handle for the Explorer using FindWindow() from the Win32 API functions, then call SetWindowPos() and setting the window to HWND_TOPMOST. That would put it on top of all other windows on the desktop in the z-order, so effectively making it modal until dismissed or the setting is changed. How that would affect the other Outlook operations is something you'd have to experiment with. If I was doing it I'd just shove a calendar picker control on a form and set it modal until a date was picked, unless something definitely Explorer related was required. -- 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 "escamoteur" wrote in message ... Hi, I want to offer the user a Calendar Explorer to pick a date. As long as this explorer is open he should not be able to switch to another explorer. Is it possible to make this explorer modal OR to hide all other active explorers as long as this explorer is used?? Best Tom |
Can I hide an explorer or make an explorer modal
Hi Ken,
avtually I did what you recommended and set all other explorers to olMinimized, that works fine. Unfortunately the Datepicker is not enough for me. I have to check first if the date is free, so an Calendareplorer works fine. Best Tom "Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag ... You could set the WindowState of any other open Explorers to olMinimized. There's no command in the object model to make an Explorer modal. You could get the window handle for the Explorer using FindWindow() from the Win32 API functions, then call SetWindowPos() and setting the window to HWND_TOPMOST. That would put it on top of all other windows on the desktop in the z-order, so effectively making it modal until dismissed or the setting is changed. How that would affect the other Outlook operations is something you'd have to experiment with. If I was doing it I'd just shove a calendar picker control on a form and set it modal until a date was picked, unless something definitely Explorer related was required. -- 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 "escamoteur" wrote in message ... Hi, I want to offer the user a Calendar Explorer to pick a date. As long as this explorer is open he should not be able to switch to another explorer. Is it possible to make this explorer modal OR to hide all other active explorers as long as this explorer is used?? Best Tom |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com