form without vbscript behind - onchange event

T

Tulasi

Hello,

i have a form when opened it has some controls- check boxes, textboxes.
Based on the selection the message is compiled. However, when I open the
script editor I could see no script. This form alos support on chenge event.
For example, on typing the name of the sender in the textbox and on lost
focus, the title of the Window is changed to add the text. How is this
possible.
 
S

Sue Mosher [MVP-Outlook]

Perhaps the form is part of a larger application that includes a COM add-in to handle the events raised by items created with the form.
 
T

Tulasi

Sue,
Thanks for the reply.
Is there any way that I ccan call a windows application when the for is
opened?
 
S

Sue Mosher [MVP-Outlook]

Yes, that can be done from a custom form's script with the Wscript.Shell object:

Set Myshell = CreateObject("WScript.Shell") 'Windows Scripting Host Object
Myshell.Run "C:\yourprogram.exe"
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
T

Tulasi

I have to desing a from with some check boxes etc. When the mail is sent the
user should get only plain text but not the form. Is there any way?

Regards
 
S

Sue Mosher [MVP-Outlook]

Put code in the form's Item_Send event handler to create a new message (Application.CreateItem) and populate its properties from the data in the original custom form message. Then set Item_Send = False to cancel sending the original.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top