A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Can I hide an explorer or make an explorer modal



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 28th 09, 09:28 AM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
escamoteur
external usenet poster
 
Posts: 147
Default 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

  #2  
Old August 28th 09, 02:10 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old August 28th 09, 05:00 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
escamoteur
external usenet poster
 
Posts: 147
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 12:31 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-2025 Outlook Banter.
The comments are property of their posters.