OlkTextBox.AfterUpdate does not fire

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
 
E

escamoteur

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
 

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