Hi,
With infopath 2010, we can detect and execute code on each view switch.
Sample : public void FormEvents_ViewSwitched(object sender, ViewSwitchedEventArgs e)
{
MessageBox.Show("Loading the view: " +
this.CurrentView.ViewInfo.Name);
}What I need is to execute the same code only when I leave specific views.Is ...