Re: Item_Save Event?

From: ScottInTexas (ScottInTexas_at_discussions.microsoft.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 06:18:01 -0700

Can the "Dirty" flag be programmatically set?

"Sue Mosher [MVP-Outlook]" wrote:

> Item_Write fires when the user clicks Save or Save is invoked
> programmatically. Note that if you are using unbound controls (or binding
> controls to fields when the controls don't support it, as I suspect may be
> the case with rich-text boxes) and the user makes changes only to those
> controls, the item will not be "dirty" (i.e. will not have unsaved changes)
> and Save will not fire.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "ScottInTexas" <ScottInTexas@discussions.microsoft.com> wrote in message
> news:90D2444D-B5A3-447A-A93A-DE2E95784B4A@microsoft.com...
> > Is there an event that fires when the user clicks on Save while editing a
> mailitem? I have to save form data during the Item_Close event. If after
> selecting save and then closing the form, I get prompted to save or discard
> the changes that the Item close event just performed. If the user selects
> OK the data I want is saved otherwise it is discarded. I need to save the
> data when the user clicks save. Then when the user closes the form they
> wont be prompted again.
> >
> > The data comes from Rich Text Boxes (RTBs). Text typed into the RTB is
> not put into the Fields until Item_Send is fired, even though the RTBs are
> bound to their respective Fields.
> >
> > RTB2 is bound to field "IncidentEvent". You can type all day long in the
> RTB and none of the text appears in the field. Only after I manually place
> the values in the field are they there.
> >
> > Sub LoadRTBFields()
> > For i = 2 To 13
> > Set Box = Item.GetInspector.ModifiedFormPages("Primary
> Report").Controls("RTB" & i)
> > Select Case i
> > Case 2
> > Item.UserProperties("IncidentDescription").Value =
> Box.TextRTF
> >
> >
> > Sub LoadRTBs()
> > For i = 2 To 13
> > Set Box = Item.GetInspector.ModifiedFormPages("Primary
> Report").Controls("RTB" & i)
> > Select Case i
> > Case 2
> > Box.TextRTF =
> Item.UserProperties("IncidentDescription").Value
> >
> > I really appreciate your help on this.
>
>
>



Relevant Pages

  • Re: Free Online CSharp 2 Windows Course
    ... At the momemt i think there are only files for the " windows apps" course ... How .NET is Different from Traditional Programming ... Label and TextBox Controls ... Introduction to Web Services ...
    (microsoft.public.dotnet.languages.csharp)
  • Free Online CSharp 2 Windows Course
    ... How .NET is Different from Traditional Programming ... Windows Forms Programming in Visual Studio.NET ... Label and TextBox Controls ... Introduction to Web Services ...
    (microsoft.public.dotnet.languages.csharp)
  • CSharp windows Preparation - Free Course
    ... How .NET is Different from Traditional Programming ... Windows Forms Programming in Visual Studio.NET ... Label and TextBox Controls ... Introduction to Web Services ...
    (microsoft.public.cert.exam.mcad)
  • Re: Item_Save Event?
    ... Item_Write fires when the user clicks Save or Save is invoked ... Note that if you are using unbound controls (or binding ... Microsoft Outlook Programming - Jumpstart for ... > The data comes from Rich Text Boxes (RTBs). ...
    (microsoft.public.office.developer.outlook.forms)
  • Re: Beginning GUI
    ... The OP is not new to programming and wants to develop a full GUI application. ... Can anyone recommend a web site, book, etc which has information on starting to develop full GUI applications? ... One thing that no one mentioned is that you don't necessarily create all your UI elements at design time. ... You may find it better to create and populate your forms at run time programmatically if the controls will vary based on software settings or authorizations. ...
    (microsoft.public.dotnet.languages.csharp)