PC Review


Reply
Thread Tools Rate Thread

Can I hide an explorer or make an explorer modal

 
 
escamoteur
Guest
Posts: n/a
 
      28th Aug 2009
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

 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      28th Aug 2009
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" <(E-Mail Removed)> wrote in message
news:922FCF39-0297-4944-9A46-(E-Mail Removed)...
> 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


 
Reply With Quote
 
escamoteur
Guest
Posts: n/a
 
      28th Aug 2009
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]" <(E-Mail Removed)> schrieb im Newsbeitrag news:OuoueE%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:922FCF39-0297-4944-9A46-(E-Mail Removed)...
>> 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

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
should i hide a form or make it modal Lord Kelvan Microsoft Access Forms 4 20th May 2010 12:19 AM
Can I hide an explorer or make an explorer modal escamoteur Microsoft Outlook VBA Programming 2 28th Aug 2009 05:00 PM
Can I hide an explorer or make an explorer modal escamoteur Microsoft Outlook Interoperability 2 28th Aug 2009 05:00 PM
HIDE: Database Explorer / Solution Explorer / Properties NewTel Microsoft ASP .NET 2 23rd Feb 2006 09:13 PM
Make non modal form modal Franz Gsell Microsoft C# .NET 1 20th Sep 2005 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 PM.