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 it possible to know which is the previous view ? (Something like PreviousView instead of CurrentView - and without using a hidden textbox defined in each view and containing the name of the view ).
Thanks in advance !
PS: sorry for my poor english