OlkTextBox.AfterUpdate does not fire

  • Thread starter Thread starter escamoteur
  • Start date Start date
E

escamoteur

Hi,

I try to react on a change in a Textbox on a User Formregion in Outlook 2007.

Strangely it does not fire. If I use the KeyDown event of the Textbox it works fine, but before and after update does noch work.

Here is how I setup the event:

txtAddress.AfterUpdate += new Microsoft.Office.Interop.Outlook.OlkTextBoxEvents_AfterUpdateEventHandler(adressChange);

void adressChange()
{
contactModified = true;
}

I tried to use the Change event, but that does already fire when I initialized the Control before hooking up this event.

Best
Tom
 
Just found the reason: This event ONLY fires if a field is connected to the control. If you have just the control it does nothing.
Best
Tom
 
Back
Top