OnAfterChange Issue

V

vb6dev2003

Hi,

Let's say I have 100 controls on my form with sections, sub-sections, etc.

Is there any way to call a unique OnAfterChange event that apply to ANY of
my controls (regardless of their name), or do I have to have 100 of these:

public void NameOfMyControl_OnAfterChange(DataDOMEvent e)
{
}

I am looking for a something like "OnContectChange" that is triggered by all
my controls. I tried:

[InfoPatEventHandler(EventType=InfoPathEventType.OnAfterChange)]
public void OnAfterChange(DataDOMEvent e)
{

}
but no luck............................

Any idea?

Thanks

vbdev
 
N

Nick

[InfoPathEventHandler(MatchPath="/my:*",EventType=InfoPathEventType.OnAfterChange)]

MatchPath should equal your nodeset of controls to fire on.
 
V

vb6dev2003

Thanks Nick. Works great!
vbdev

Nick said:
[InfoPathEventHandler(MatchPath="/my:*",EventType=InfoPathEventType.OnAfterC
hange)]

MatchPath should equal your nodeset of controls to fire on.
vb6dev2003 said:
Hi,

Let's say I have 100 controls on my form with sections, sub-sections, etc.

Is there any way to call a unique OnAfterChange event that apply to ANY of
my controls (regardless of their name), or do I have to have 100 of these:

public void NameOfMyControl_OnAfterChange(DataDOMEvent e)
{
}

I am looking for a something like "OnContectChange" that is triggered by all
my controls. I tried:

[InfoPatEventHandler(EventType=InfoPathEventType.OnAfterChange)]
public void OnAfterChange(DataDOMEvent e)
{

}
but no luck............................

Any idea?

Thanks

vbdev
 
Top