Re: Custom form not saving when fields changed programatically

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



No settings are involved. Maybe it's time you showed some code and explained whether you're writing code behind the form or in some other environment.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"karlman" <karl@xxxxxxxxxxxx> wrote in message news:16e72bcc-6e65-4aab-9741-14b09e270eef@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jan 10, 7:41 am, "Sue Mosher [MVP-Outlook]"
<sue...@xxxxxxxxxxxxxxx> wrote:
Dirtying the Subject property should work.

"karlman" <k...@xxxxxxxxxxxx> wrote in messagenews:9982830e-21ad-48d2-9515-79134d167ad4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there a way to force a form as "dirty" so Outlook attempts to save
it if someone clicks the 'X'?

I am changing the HTMLBody and even a custom field but the if I click
the 'X' then the form closes without saving. If I change any field
using the GUI then it does ask to save if I press the 'X'.

I have code that tells me if the form is dirty. Should I add something
in the Item_Close event and force the save at that point?

Thanks
Karl- Hide quoted text -

- Show quoted text -

I was attempting to use the Milage property to no effect. I tried the
subject and that did not work either. I even put the subject field on
the form and can watch it change but Outlook still thinks it is a
"clean" form.

Interestingly, if I dirty the subject field manually through the GUI
then the form becomes dirty. Form some reason changing a custom or
builtin property through code is not dirtying the form. Only if I do
it throught the GUI.

I am probably missing something simple here. Maybe a setting on the
form?

Thanks
Karl
.



Relevant Pages

  • Re: Custom form not saving when fields changed programatically
    ... Sue Mosher, Outlook MVP ...    Author of Microsoft Outlook 2007 Programming: ... if I dirty the subject field manually through the GUI ...
    (microsoft.public.outlook.program_forms)
  • RE: WINDOWS DOES NOT REMEMBER LOGON CREDENTIALS
    ... Outlook erases passwords even though "remember password" is ticked. ... It is strange how the settings Right and the Implementation doesn't apply or ... By looking on the Permission assigned you can adjust it to give the Admin ... Right-click the Protected Storage System Provider key, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Cant Send e-mails - Outlook 2003
    ... Rich, the answer to #1 is yes, at home Outlook sends messages just fine. ... I asked them about other port numbers, and they say they do not have any ... Your original settings might have been okay, but Verizon may have had server ...
    (microsoft.public.outlook.installation)
  • Re: User does not show up in Global Address List
    ... Then when I'm satisfied I'd had gone over the user settings to my best ... "hide from exchange address lists" checked. ... either from Outlook or OWA. ... Offline address book as I was attempting to reset the account. ...
    (microsoft.public.windows.server.sbs)
  • Re: I cant send email ,either
    ... check settings in the Outlook Express ... If you read your email using Microsoft Outlook Express, ... ensure that there is a tick in Always connect to this account using ... How to setup Outlook Express to receive all Tiscali emails ...
    (microsoft.public.windows.vista.mail)