ViewInfoCollection.SwitchView method (String)
Switches the current view to the specified view by name.
public abstract void SwitchView(
- Type: System.String
The name of the view to switch to.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.
The following example switches the current view to the view name "View2".
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback