![]() |
| 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. |
|
|||||||
| Tags: execute, external, form, inspector, instead, opening, openning, program |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'd like to execute an external program (through WScript.Shell) when the user tries to open a particular inspector (for example open a IE browser instead of a mail) using OL forms. So I created a form and placed my execution code in the Open Item Event Handler. The problem is that when I tried to avoid the OL form to open (in order to just execute the external program) I set the Item_Open property to false but I couldn't find a way to distinguish when the form is opened in Design mode and when is opened in run mode, so if I set false to this property I can't open the form in design mode any more. Is there any way to distinguish between design and run mode? Is there any other recommended way to do that? Any idea will be welcome, Regards LucasC |
| Ads |
|
#2
|
|||
|
|||
|
Hold down the shift key when you open the form to prevent the form code
from running. -- 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 "Lucas Campos" wrote in message ... Hi, I'd like to execute an external program (through WScript.Shell) when the user tries to open a particular inspector (for example open a IE browser instead of a mail) using OL forms. So I created a form and placed my execution code in the Open Item Event Handler. The problem is that when I tried to avoid the OL form to open (in order to just execute the external program) I set the Item_Open property to false but I couldn't find a way to distinguish when the form is opened in Design mode and when is opened in run mode, so if I set false to this property I can't open the form in design mode any more. Is there any way to distinguish between design and run mode? Is there any other recommended way to do that? Any idea will be welcome, Regards LucasC |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Associate and view an email to a external program and db | Andrea | Add-ins for Outlook | 1 | June 6th 07 12:45 AM |
| Script behind published form will not execute for some users | Trent | Outlook - Using Forms | 4 | October 20th 06 03:23 PM |
| Sending form to external email address? | sdow | Outlook - Using Forms | 1 | October 3rd 06 06:12 PM |
| Changing the attahment opening program | Pet | Outlook - Installation | 3 | April 2nd 06 12:29 PM |
| Windows form in Inspector | Rog | Add-ins for Outlook | 1 | March 17th 06 03:55 PM |