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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , , ,

How to execute an external program instead of openning the form when opening an inspector





 
 
Thread Tools Display Modes
  #1  
Old August 13th 07, 11:11 PM posted to microsoft.public.outlook.program_forms
Lucas Campos[_2_]
external usenet poster
 
Posts: 5
Default How to execute an external program instead of openning the form when opening an inspector

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  
Old August 13th 07, 11:42 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,772
Default How to execute an external program instead of openning the form when opening an inspector

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

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


All times are GMT +1. The time now is 12:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Cards - Loans - Debt Consolidation - Loans - Remortgages