![]() |
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 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 |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make email modal | steve | Outlook and VBA | 5 | October 18th 12 05:52 PM |
Can I hide an explorer or make an explorer modal | escamoteur | Outlook and VBA | 2 | August 28th 09 05:00 PM |
explorer | clairetub | Outlook Express | 1 | July 24th 06 02:45 AM |
Email hyperlinks open Windows Explorer, not Internet Explorer | M Skabialka | Outlook - General Queries | 2 | July 7th 06 09:39 PM |
When is a Modal UserForm 'Semi-Modal'...? | David OShea | Outlook and VBA | 3 | March 15th 06 11:59 AM |